mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
- 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
14 lines
486 B
Clojure
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}))
|