practicalli / spacemacs

Content for the book - Clojure Development with Spacemacs
https://practical.li/spacemacs
Creative Commons Attribution Share Alike 4.0 International
109 stars 33 forks source link

Logging in Clojure #256

Open practicalli-johnny opened 4 years ago

practicalli-johnny commented 4 years ago

Logging is more effectively managed by sending output to rolling log files or to a logging service like Elastic Search Kibana.

Sending logs to the REPL can be problematic as it is harder to see what is happening in the REPL, especially if logging is quite extensive.

By default CIDER does send logs to the REPL using the variable cider-redirect-server-output-to-repl

Set this variable to nil to stop any logging in the REPL

Example .dir-locals.el configuration (TODO: check this should be clojure-mode)

((clojure-mode
  (cider-redirect-server-output-to-repl . nil)))

TODO: add details about logging in Clojure