aboutsummaryrefslogtreecommitdiff
path: root/docs/config.md
diff options
context:
space:
mode:
authorKaren Konou <konoukaren@gmail.com>2019-02-08 12:44:02 +0100
committerKaren Konou <konoukaren@gmail.com>2019-02-08 12:44:02 +0100
commit98ec578f4d36ff1a94ee59087f57704ed109bd9c (patch)
treeb3e6c350e87e7091b3b253ae5d4256446b2518b5 /docs/config.md
parent97a2789caa5d269975da22a2153de22b7978ad36 (diff)
parentd84392c9e05342a70d3a759ac380dcd41f22ed0e (diff)
downloadpleroma-98ec578f4d36ff1a94ee59087f57704ed109bd9c.tar.gz
Merge branch 'develop' into feature/thread-muting
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 e042d216f..ba6807760 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/)