pannb.util module¶
Some utilities, e.g. setup logging.
-
pannb.util.
setup_logging
(name: str = 'pannb', level: str = 'INFO', env_var: str = 'PANNBLOGLEVEL', fmt: str = '%(name)s %(levelname)s %(message)s', Handler=<class 'logging.StreamHandler'>, Formatter=<class 'logging.Formatter'>) → logging.Logger[source]¶ Setup logging.
- Parameters
env_var – if not empty, set log level from this environment variable.