<@ULVA73B9P> I'm trying to use the prefect client ...
# ask-marvin
g
@Marvin I'm trying to use the prefect client to trigger run flows from another service. However, the following import is causing conflicts with my applications logger settings where it's log messages are no longer sending logs to stdout:
from prefect.client import get_client
. Is there a way to configure the prefect client's log settings so it doesn't impact global log settings?
m
It seems like you can override any logging configuration by setting an environment variable or Prefect Profile setting using the syntax
PREFECT_LOGGING_[PATH]_[TO]_[KEY]
, with `[PATH]_[TO]_[KEY] corresponding to the nested address of any setting. For example, to change the default logging levels for Prefect to
DEBUG
, you can set the environment variable
PREFECT_LOGGING_LEVEL_ROOT=DEBUG
. For more details, you can refer to the Prefect Logging Guide. If this doesn't solve your problem, you might want to consider posting a question on the Prefect Discourse.