https://dagster.io/ logo
#ask-community
Title
# ask-community
p

Peter Skipper

03/01/2023, 10:11 PM
I’d like to configure the default console logger in my job to only log INFO or higher messages. I’ve seen the documentation here , but what I want to do is use
.configured
in my
to_job
call. I have
Copy code
logger_defs={
        "console": colored_console_logger.configured(
            {"log_level": "INFO"}
        )
    },
But this doesn’t seem to do anything, and I still see all the DEBUG messages. Can anyone help me figure out what to do?
s

sandy

03/02/2023, 11:16 PM
Hi Peter - the
logger_defs
parameter determines which loggers are available to the job, but you need to also configure the job to select your logger def:
Copy code
@job(
    logger_defs={"console": colored_console_logger.configured({"log_level": "INFO"})},
    config={"loggers": {"console": {}}},
)
🙏 1
thank you box 1
9 Views