USGSCSM
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

utils.log — Wrapper for setting up a user defined logger

The utils.log module provides logging setup assistance .. versionadded:: 0.1.0

plio.utils.log.setup_logging(path='/home/runner/work/plio/plio/plio/examples/loggers/logging.json', level='INFO', env_key='LOG_CFG')[source]

Read a log configuration file, written in JSON

Parameters:
  • path (string) – The path to the logging configuration file

  • level (object) – The logger level at which to report

  • env_key (str) – A potential environment variable where the user defaults logs