diff options
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ A handler class for the Python logging framework is also provided: import logging from systemd import journal logger = logging.getLogger('custom_logger_name') - logger.addHandler(journal.JournalHandler()) + logger.addHandler(journal.JournalHandler(SYSLOG_IDENTIFIER='custom_unit_name')) logger.warning("Some message: %s", 'detail') libsystemd version compatibility |