summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/log.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/log.py b/src/log.py
index cabe4d0..e62da7f 100644
--- a/src/log.py
+++ b/src/log.py
@@ -58,8 +58,17 @@ def _default_logging_live():
'filename': f'/opt/opengnsys/log/{getifaddr(os.getenv("DEVICE"))}.log',
}
}
+ rtlog = {
+ 'rtlog': {
+ 'class': 'logging.FileHandler',
+ 'formatter': 'formatter.syslogtime',
+ 'filename': f'/tmp/session.log',
+ }
+ }
logconfig['handlers'].update(samba)
+ logconfig['handlers'].update(rtlog)
logconfig['loggers']['']['handlers'].append('samba')
+ logconfig['loggers']['']['handlers'].append('rtlog')
return logconfig