https://prefect.io logo
Title
f

Florian Guily

03/23/2022, 10:39 AM
Hi, i'm just getting into logging. Is there more log type than info and warning ? if so where can i find this list ?
a

Anna Geller

03/23/2022, 10:40 AM
You can find it in Python documentation 🙂 Prefect supports Python standard logging
f

Florian Guily

03/23/2022, 10:43 AM
Oh is it what's mentionned with the use of
@task(log_stdout=True)
?
a

Anna Geller

03/23/2022, 11:05 AM
No, I meant logging levels as described here https://docs.python.org/3/library/logging.html
The log_stdout will log all print statements with a log level INFO
and in case you were asking how to adjust the log level for Prefect logs e.g. on your agent, you can add this environment variable when starting your agent:
prefect agent local start --env PREFECT__LOGGING__LEVEL="DEBUG"
f

Florian Guily

03/23/2022, 12:20 PM
ok thanks !
👍 1
yeah my bad i read prefect doc...