logging
zeus.utils.logging
Utilities for logging.
FileAndConsole
Like tee, but for Python prints.
Source code in zeus/utils/logging.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
__init__
__init__(filepath)
Source code in zeus/utils/logging.py
12 13 14 15 |
|
write
write(message)
Write message.
Source code in zeus/utils/logging.py
17 18 19 20 21 22 |
|
flush
flush()
Flush both log file and stdout.
Source code in zeus/utils/logging.py
24 25 26 27 |
|
get_logger
get_logger(name, level=logging.INFO, propagate=False)
Get a logger with the given name with some formatting configs.
Source code in zeus/utils/logging.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|