  library in single user mode. Ie only one logging system. Will be true for 99%
  of all users."}
   *db* (atom {}))
+
+(declare time-formatter)
 
 ;; Config for display/tabs of the log viewer
 (defn new-db

                    (:ns lg-ev)
                    (if (empty? (:ns lg-ev)) "" "/")
                    (name (:type lg-ev))
                    ((.format
                      (goog.i18n.DateTimeFormat. "HH:mm:ss.SSS"))
                     (: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

   :showing-tab :all
   ;; Date time formatter
   ;; memfn not working?
   :time-formatter time-formatter
   ;; User defined tabs state
   :tabs (sorted-map
          ;; The main tab holding all logs
