                           (g) (repeatedly 3 f) "-"
                           (repeatedly 12 f)))))
 
+(defn time-formatter
+  [time]
+  (.format (goog.i18n.DateTimeFormat. "HH:mm:ss.SSS") time))
+
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Declares
 (declare action!)

 library in single user mode. Ie only one logging system. Will be true for 99%
 of all users."}
  *db* (atom {}))

;; Config for display/tabs of the log viewer
(defn new-db

                    (:ns lg-ev)
                    (if (empty? (:ns lg-ev)) "" "/")
                    (name (:type lg-ev))
                    ;; We can't dered DB here to get the formatter
                    ;; or reagent will re-render everything always
                    (time-formatter (:time lg-ev)))
                   ;; console.dir firefox & chrome only?
                   ;;(mapv #(js/console.dir %) (:msg lg-ev))
                   ;; %o calls either .dir() or .dirxml() if it's a DOM node
