From ab80c8ebb85271e9b5456c36316b7ebc98d96f1e Mon Sep 17 00:00:00 2001
From: Michael Loftis <mloftis@wgops.com>
Date: Wed, 6 Feb 2019 17:54:30 +0000
Subject: [PATCH] adds a couple of explicit examples for ExSyslogger

---
 docs/config.md | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

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/)