summaryrefslogtreecommitdiff
path: root/python/samba/logger.py
Commit message (Collapse)AuthorAgeFilesLines
* logger: use color automatically for a ttyJoe Guo2018-11-211-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
* samba/logger: add logger module for pythonJoe Guo2018-10-101-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>