logging
zeus.util.logging
Utilities for logging.
FileAndConsole
Like tee, but for Python prints.
Source code in zeus/util/logging.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
__init__
__init__(filepath)
Source code in zeus/util/logging.py
25 26 27 28 |
|
write
write(message)
Write message.
Source code in zeus/util/logging.py
30 31 32 33 34 35 |
|
flush
flush()
Flush both log file and stdout.
Source code in zeus/util/logging.py
37 38 39 40 |
|
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/util/logging.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|