It outputs the events into the standard output in JSON format
In order to use the library add the dependency to your project.clj
;; Leiningen project
[com.brunobonacci/mulog-adv-console "x.x.x"]
;; deps.edn format
{:deps { com.brunobonacci/mulog-adv-console {:mvn/version "x.x.x"}}}
The events must be serializeable in JSON format (see How to JSON encode custom Java classes for more info.)
The available configuration options:
{:type :console-json
;; Whether or not to output must be pretty-printed (multiple lines)
:pretty? false
;; a function to apply to the sequence of events before publishing.
;; This transformation function can be used to filter, tranform,
;; anonymise events before they are published to a external system.
;; by defatult there is no transformation. (since v0.1.8)
:transform identity
}
How to use it:
(μ/start-publisher! {:type :console-json})