summaryrefslogtreecommitdiff
path: root/python/samba/logger.py
AgeCommit message (Collapse)AuthorFilesLines
2023-12-15python: use python3 style super statementsRob van der Linde1-1/+1
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-09-06py/samba/logger: respect NO_COLOR env variableDouglas Bagnall1-2/+2
As per https://no-color.org/ Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2018-11-21logger: use color automatically for a ttyJoe Guo1-2/+5
Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Nov 21 10:46:20 CET 2018 on sn-devel-144
2018-10-10samba/logger: add logger module for pythonJoe Guo1-0/+66
We need a consitent way for logging in Samba Python code. This module provides a factory method `get_samba_logger` to create logger, with a reasonable default format and optional color. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>