-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdialog.edn
56 lines (50 loc) · 2.37 KB
/
dialog.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
;; Sample dialog configuration file. This is an EDN file read with Aero; the
;; profile can be set with the JVM property `dialog.profile` or the environment
;; variable `DIALOG_PROFILE`. Generally, settings in the environment will take
;; priority over settings as JVM properties.
{;; Initialization function which is resolved and called at startup time with
;; the configuration map. Should return an updated config map, and may perform
;; any desired side-effects.
:init acme.logging/initialize!
;; Root logger level. Can be overridden at runtime with the JVM property
;; `dialog.level` or the environment variable `DIALOG_LEVEL`.
:level :debug
;; Individual logger levels. Can also be set at runtime with the JVM
;; properties `dialog.level.<logger>` or the environment variables
;; `DIALOG_LEVEL_<logger>`. Loggers use the most-specific level set in their
;; name hierarchy.
:levels
{"acme" #profile {:repl :debug
:default :info}
"vault" :info
,,,}
;; Set of loggers which should never be output. Any messages sent to these
;; will be dropped, no matter what their log level is set to.
:blocked
#profile {:main #{"org.apache.http"
"org.apache.parquet"}
:default #{}}
;; Collection of functions which will be called in order on log events before
;; they are sent to the outputs. These functions may enrich the events with
;; additional context, modify the data, remap fields, or even filter events
;; by returning nil. Functions are called with the current configuration map
;; and the event being processed.
:middleware
[acme.logging/ken-context
acme.logging/extra-format]
;; Outputs to send log messages to, specified by a keyword and a configuration
;; value. There are various ways to configure the outputs; see the
;; documentation for more information on the various options.
:outputs
#profile {:test {:shh :null}
:repl {:console {:type :print
:format :pretty
:timestamp :short}}
:main {:stdout {:type :print
:stream :stdout
:format :simple
:padding false
:levels {"vault.client" :warn}}
:loggly {:type :syslog
:format :json
:middleware [acme.logging/filter-syslog]}}}}