aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Loftis <mloftis@wgops.com>2019-02-06 17:54:30 +0000
committerMichael Loftis <mloftis@wgops.com>2019-02-06 17:54:30 +0000
commitab80c8ebb85271e9b5456c36316b7ebc98d96f1e (patch)
treea0314dc65b9b8fcdcefd5b4e2b84ec66900164ca
parent43b3f9e96e84898a40f6605cb42afa630511d440 (diff)
downloadpleroma-ab80c8ebb85271e9b5456c36316b7ebc98d96f1e.tar.gz
adds a couple of explicit examples for ExSyslogger
-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/)