setup_logger#

radiosim.utils.setup_logger(namespace='rich', level='INFO', **kwargs)[source]#

Basic logging setup. Uses RichHandler for 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 RichHandler for formatting and highlighting.

See also

RichHandler

Rich’s builtin logging handler for more information on allowed keyword arguments.