version: 1
disable_existing_loggers: false

formatters:
  # JSON for stdout (aggregators, etc.)
  json:
    class: prefect.logging.formatters.JsonFormatter
    format: pretty

handlers:
  api:
    class: prefect.logging.handlers.APILogHandler
    level: NOTSET
    formatter: json
  json_stdout:
    class: logging.StreamHandler
    stream: ext://sys.stdout
    level: NOTSET
    formatter: json

loggers:
  prefect.flow_runs:
    level: NOTSET
    propagate: false
    handlers: [api, json_stdout]
  prefect.task_runs:
    level: NOTSET
    propagate: false
    handlers: [api, json_stdout]
  prefect.extra:
    level: NOTSET
    propagate: false
    handlers: [api, json_stdout]

root:
  level: INFO
  handlers: [json_stdout]
