Liking cljdoc? Tell your friends :D

simple-logging

Clojars Project

A Clojure library designed to simplify logging configuration.

[org.clojars.wang/simple-logging "1.0.19"]
org.clojars.wang/simple-logging {:mvn/version "1.0.19"}

Usage

[taoensso.timbre :as log]
[simple.logging :as slog]

(log/merge-config! {:appenders {:json (slog/json-appender)
                                :println (slog/println-appender)}})

To bridge slf4j:

com.fzakaria/slf4j-timbre #:mvn{:version "0.3.19"}
org.slf4j/slf4j-api #:mvn{:version "1.7.21"}

To bridge log4j:

org.slf4j/log4j-over-slf4j #:mvn{:version "1.7.30"}

To bridge jboss logging:

-Dorg.jboss.logging.provider=slf4j

To bridge jboss logging in clj -M:run:

:run {:main-opts ["-m" "app.core"]
      :extra-paths ["test"]
      :jvm-opts ["-Dorg.jboss.logging.provider=slf4j"]}

Development

  1. Install to local ~/.m2 maven repository

    clj -T:build install

  2. Deploy to clojars

    clj -T:build deploy

License

Copyright © 2021 Lei

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