GOOD.utils.logger
A logger related utils file: tqdm style, logger loader.
Functions
|
Logger loader |
- GOOD.utils.logger.load_logger(config: Union[CommonArgs, Munch], sub_print=True)[source]
Logger loader
- Parameters
config (Union[CommonArgs, Munch]) – munchified dictionary of args (
config.log_path
,config.tensorboard_logdir
,config.log_file
)sub_print (bool) – Whether the logger substitutes general print function. If Ture, logger.info will be equal to print(f’#IN#Message’), where #IN# represents info. Similarly, other level of log can be used by adding prefixes (Not capital sensitive): Debug: #d#, #De#, #Debug#, etc. Info: #I#, #In#, #inf#, #INFO#, etc. Important: #IM#, #important#, etc. Warning: #W#, #war#, etc. Error: #E#, #err#, etc. Critical: #C#, #Cri#, #critical#, etc. If there is no prefix, the general print function will be used.
- Returns
[cilog Logger, tensorboard summary writer]