Logging integration for Zeph using Timbre.
Usage: (require '[zeph.logging :as log])
;; Initialize Timbre as the logger (log/init!)
;; Use standard Timbre logging (log/info "Server started") (log/error "Connection failed" {:error e})
;; Configure log level (log/set-level! :debug)
Logging integration for Zeph using Timbre.
Usage:
(require '[zeph.logging :as log])
;; Initialize Timbre as the logger
(log/init!)
;; Use standard Timbre logging
(log/info "Server started")
(log/error "Connection failed" {:error e})
;; Configure log level
(log/set-level! :debug)(configure-development!)Configure logging for development use.
Configure logging for development use.
(configure-production!)Configure logging for production use.
Configure logging for production use.
(console-appender {:keys [output-fn] :or {output-fn :inherit}})Create a console appender with custom options.
Create a console appender with custom options.
Default output format: timestamp level namespace - message
Default output format: timestamp level namespace - message
(file-appender path & {:keys [output-fn] :or {output-fn :inherit}})Create a file appender.
Create a file appender.
(init!)Initialize Timbre as the log handler for Java code. Call this at application startup.
Initialize Timbre as the log handler for Java code. Call this at application startup.
(reset!)Reset to default System.out/err logging.
Reset to default System.out/err logging.
(set-config! config)Set Timbre configuration map.
Set Timbre configuration map.
(set-level! level)Set the minimum log level.
Set the minimum log level.
(with-context context & body)Execute body with additional logging context.
Execute body with additional logging context.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |