setup_logger#
- pyvisgen.utils.setup_logger(namespace='rich', level='INFO', **kwargs)[source]#
Basic logging setup. Uses
RichHandlerfor formatting and highlighting of the log.- Parameters:
- namespacestr, optional
Namespace to use for the logger. Default:
'rich'- levelstr, optional
Logging level. Default
'INFO'- **kwargs
Keyword arguments for
RichHandler.
- Returns:
- logging.Logger
Logger object using
RichHandlerfor formatting and highlighting.
See also
RichHandlerRich’s builtin logging handler for more information on allowed keyword arguments.