LoggingΒΆ
This module uses the standard Python logging module to generate meaningful logs.
To retrieve the logs, use this snippet:
logger = logging.getLogger("fossology")
console = logging.StreamHandler()
console.setLevel(logging.DEBUG)
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
console.setFormatter(formatter)
logger.addHandler(console)
Refer to the official documentation of the logging module for further details about the possible configuration options.