From 7f0b4c079a10b64f209e0945dc7e1e2053a3e77a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 21 Aug 2024 22:56:42 -0700 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index fe92fb0..ad75576 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,18 @@ signalHoldTime = 10 signalCooldown = 5 signalCycleLimit = 5 ``` + +Logging messages to disk or Syslog to disk uses the python native logging fuction. Take a look at the [/modules/log.py](/modules/log.py) you can set the file logger for syslog to INFO for example to not log DEBUG messages to file log, or modify the stdOut level. +``` +[general] +# logging to file of the non Bot messages +LogMessagesToFile = True +# Logging of system messages to file +SyslogToFile = True +*log.py +file_handler.setLevel(logging.INFO) # DEBUG used by default for system logs to disk example here shows INFO +``` + # requirements Python 3.4 and likely higher is needed, developed on latest release.