fgen.commands.base#
Base utilities for the CLI
DEFAULT_LOGGING_CONFIG#
- DEFAULT_LOGGING_CONFIG = {'handlers': [{'sink': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>, 'colorize': True, 'format': '<green>{time:!UTC}</> - <lvl>{level}</> - <cyan>{name}:{file}:{line}</> - <lvl>{message}</>'}]}#
Default configuration used with
loguru.logger.configure()
setup_logging#
- setup_logging(config=None)[source]#
Early setup for logging.
- Parameters:
config (
typing.Optional
[dict
[str
,typing.Any
]]) – Passed tologuru.logger.configure()
. If not passed,DEFAULT_LOGGING_CONFIG
is used.- Return type: