# Logging
Utility functions for interacting with and configuring logging. The main entrypoint for
retrieving loggers for customization is the get_logger
utility.
Note that Prefect Tasks come equipped with their own loggers. These can be accessed via:
- self.logger
if implementing a Task class
- prefect.context.get("logger")
if using the task
decorator
When running locally, log levels and message formatting are set via your Prefect configuration file.
# Functions
top-level functions: |
---|
prefect.utilities.logging.configure_logging (testing=False)[source] |
Creates a "prefect" root logger with a
|
prefect.utilities.logging.get_logger (name=None)[source] |
Returns a "prefect" logger.
|
This documentation was auto-generated from commit n/a
on February 23, 2022 at 19:26 UTC