Add event log search and filter capabilities

Change-Id: I9dc891e0f1e30abe488d401c57e1cf4f5656c3af
Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
diff --git a/app/common/directives/log-event.js b/app/common/directives/log-event.js
new file mode 100644
index 0000000..387ce3b
--- /dev/null
+++ b/app/common/directives/log-event.js
@@ -0,0 +1,28 @@
+window.angular && (function (angular) {
+    'use strict';
+
+    angular
+        .module('app.common.directives')
+        .directive('logEvent', ['APIUtils', function (APIUtils) {
+            return {
+                'restrict': 'E',
+                'templateUrl': 'common/directives/log-event.html',
+                'scope': {
+                   'event': '=',
+                   'tmz': '='
+                },
+                'controller': ['$rootScope', '$scope','dataService', '$location', '$timeout', function($rootScope, $scope, dataService, $location, $timeout){
+                    $scope.dataService = dataService;
+                    $scope.copySuccess = function (event) {
+                        event.copied = true;
+                        $timeout(function(){
+                            event.copied = false;
+                        }, 5000);
+                    };
+                    $scope.copyFailed = function (err) {
+                        console.error('Error!', err);
+                    };
+                }]
+            };
+        }]);
+})(window.angular);