# 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 bd9182e 
on July 31, 2024 at 18:02 UTC