Skip to main content

prefect.settings.models.logging

Functions

max_log_size_smaller_than_batch_size

Validator for settings asserting the batch size and match log size are compatible

Classes

LoggingToAPISettings

Settings for controlling logging to the API Methods:

emit_warnings

Emits warnings for misconfiguration of logging settings.

settings_customise_sources

Define an order for Prefect settings sources. The order of the returned callables decides the priority of inputs; first item is the highest priority. See https://docs.pydantic.dev/latest/concepts/pydantic_settings/#customise-settings-sources

to_environment_variables

Convert the settings object to a dictionary of environment variables.

LoggingSettings

Settings for controlling logging behavior Methods:

settings_customise_sources

Define an order for Prefect settings sources. The order of the returned callables decides the priority of inputs; first item is the highest priority. See https://docs.pydantic.dev/latest/concepts/pydantic_settings/#customise-settings-sources

to_environment_variables

Convert the settings object to a dictionary of environment variables.