Hi, i'm just getting into logging. Is there more l...
# prefect-community
f
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
You can find it in Python documentation 🙂 Prefect supports Python standard logging
f
Oh is it what's mentionned with the use of
Copy code
@task(log_stdout=True)
?
a
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:
Copy code
prefect agent local start --env PREFECT__LOGGING__LEVEL="DEBUG"
f
ok thanks !
👍 1
yeah my bad i read prefect doc...