Additional appenders for spootnik/unilog
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/truckerpath/unilog_appenders
test/truckerpath/unilog_appenders
.gitignore
LICENSE
README.md
project.clj

README.md

unilog-appenders Circle CI

Additional appenders for spootnik/unilog. Available appenders:

Usage

Clojars Project

You have to require appender you want to use in a file where you're calling start-logging! and add appropriate section into you logging config.

Logentries

(require '[truckerpath.unilog-appenders.logentries])
(require '[unilog.config :as unilog])
(require '[clojure.tools.logging :as log])

(let [config {:appenders [{:appender :logentries
                           :token "your-logentries-token"
                           :debug true   ; default - false
                           :ssl true     ; default - false
                           :pattern "%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"}]}]

  (unilog/start-logging! config)
  (log/info "Log message"))

License

Copyright © 2016 Trucker Path Inc.
Licensed under the MIT License