Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 787 Bytes

simple-console-publisher.md

File metadata and controls

28 lines (21 loc) · 787 Bytes

Simple console publisher

since v0.1.0

It is bundled with the core module, no extra dependencies required. It outputs the events into the standard output in EDN format, mostly intended for local development.

The available configuration options:

{:type :console

 ;; 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})