Liking cljdoc? Tell your friends :D

Duct Simple Logger Build Status

A simple logging library for the Duct framework that's fully compatible with Integrant.

Installation

Add the following dependency to your deps.edn file:

org.duct-framework/logger.simple {:mvn/version "0.1.0"}

Or to your Leiningen project file:

[org.duct-framework/logger.simple "0.1.0"]

Usage

You can use the :duct.logger.simple/stdout logger to output logging events. This key derives from :duct/logger.

{:duct.logger.simple/stdout {}
 :example/hello-world {:logger #ig/ref :duct/logger}}

The logger uses the protocol from the duct.logger library:

(ns example
  (:require [duct.logger :as logger]
            [integrant.core :as ig]))

(defmethod ig/init-key ::hello-world [_ {:keys [logger]}]
  (logger/log logger ::hello-world))

License

Copyright © 2024 James Reeves

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close