Bläddra i källkod

Document logging setup and bump to latest devtools

Gabriel Horner 3 år sedan
förälder
incheckning
669a56911e
2 ändrade filer med 9 tillägg och 1 borttagningar
  1. 1 1
      deps.edn
  2. 8 0
      docs/dev-practices.md

+ 1 - 1
deps.edn

@@ -26,7 +26,7 @@
   thheller/shadow-cljs                  {:mvn/version "2.17.5"}
   expound/expound                       {:mvn/version "0.8.6"}
   com.lambdaisland/glogi                {:mvn/version "1.1.144"}
-  binaryage/devtools                    {:mvn/version "1.0.2"}
+  binaryage/devtools                    {:mvn/version "1.0.5"}
   camel-snake-kebab/camel-snake-kebab   {:mvn/version "0.4.2"}
   instaparse/instaparse                 {:mvn/version "1.4.10"}
   nubank/workspaces                     {:mvn/version "1.1.1"}

+ 8 - 0
docs/dev-practices.md

@@ -99,3 +99,11 @@ appear where shadow-cljs was first invoked e.g. where `yarn watch` is running.
 Specific namespace(s) can be auto run with the `:ns-regexp` option e.g. `npx
 shadow-cljs watch test --config-merge '{:autorun true :ns-regexp
 "frontend.text-test"}'`.
+
+## Logging
+
+For logging, we use https://github.com/lambdaisland/glogi. When in development,
+be sure to have [enabled custom
+formatters](https://github.com/binaryage/cljs-devtools/blob/master/docs/installation.md#enable-custom-formatters-in-chrome)
+in the desktop app and browser. Without this enabled, most of the log messages
+aren't readable.