aboutsummaryrefslogtreecommitdiff
path: root/docs/config.md
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-02-08 13:12:33 +0300
committerrinpatch <rinpatch@sdf.org>2019-02-08 13:12:33 +0300
commit6c21f5aa167c0ad37a18f3164c9ec53fbad492c2 (patch)
tree66836dfd3425fd1407c2f4cf4b14f0fbdc662140 /docs/config.md
parent8a0b755c19ef9c896f69de2b1bf22418a3aedf6f (diff)
parentd84392c9e05342a70d3a759ac380dcd41f22ed0e (diff)
downloadpleroma-6c21f5aa167c0ad37a18f3164c9ec53fbad492c2.tar.gz
Merge branch 'develop' into feature/keyword-policy
Diffstat (limited to 'docs/config.md')
-rw-r--r--docs/config.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/config.md b/docs/config.md
index c0eb4ceb4..08523ac53 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -100,6 +100,26 @@ config :pleroma, Pleroma.Mailer,
## :logger
* `backends`: `:console` is used to send logs to stdout, `{ExSyslogger, :ex_syslogger}` to log to syslog
+
+An example to enable ONLY ExSyslogger (f/ex in ``prod.secret.exs``) with info and debug suppressed:
+```
+config :logger,
+ backends: [{ExSyslogger, :ex_syslogger}]
+
+config :logger, :ex_syslogger,
+ level: :warn
+```
+
+Another example, keeping console output and adding the pid to syslog output:
+```
+config :logger,
+ backends: [:console, {ExSyslogger, :ex_syslogger}]
+
+config :logger, :ex_syslogger,
+ level: :warn,
+ option: [:pid, :ndelay]
+```
+
See: [logger’s documentation](https://hexdocs.pm/logger/Logger.html) and [ex_syslogger’s documentation](https://hexdocs.pm/ex_syslogger/)