edflow.custom_logging module¶
Summary¶
Classes:
Functions:
Creates a logger, which shares its output directory with all other loggers. |
|
Must be called at the very beginning of a script. |
|
Must be called at the very beginning of a script. |
Reference¶
-
class
edflow.custom_logging.TqdmHandler(pos=4)[source]¶ Bases:
logging.StreamHandler-
emit(record)[source]¶ Emit a record.
If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.
-
-
class
edflow.custom_logging.LogSingleton(out_base_dir=None, level=20, write_pos=4)[source]¶ Bases:
object-
exists= False¶
-
default= 'root'¶
-
-
edflow.custom_logging.init_project(base_dir, code_root='.', postfix=None)[source]¶ Must be called at the very beginning of a script.