Files
logseq/src/main/frontend/log.cljs
Gabriel Horner 1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00

14 lines
486 B
Clojure

(ns frontend.log
"System-component-like ns that encapsulates logging functionality"
(:require [lambdaisland.glogi :as log]
[lambdaisland.glogi.console :as glogi-console]
[frontend.config :as config]))
;; TODO: Move code below into a fn to behave like a system component
;; instead of having no control over its behavior at require time
(glogi-console/install!)
(if config/dev?
(log/set-levels {:glogi/root :info})
(log/set-levels {:glogi/root :warn}))