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

Ben Wilson

03/09/2023, 10:39 PM
I had a question related to the default "json_console_logger". I set this up as part of my definitions
Copy code
import dagster

from dags import cf, observations, ts, pr
from models import database
from dagster import json_console_logger

defs = dagster.Definitions(
    jobs=[
        observations.import_observations.to_job(resource_defs={"database": database}),
        cf.copy.to_job(),
        ts.ts.to_job(resource_defs={"database": database}),
        pr.ss.to_job(resource_defs={"database": database},logger_defs={'json_logger': json_console_logger})
    ],
    resources={"database": database},
)
and then added the following to my yaml config
Copy code
loggers:
  json_logger:
    config:
      log_level: INFO
but am still seeing non json formatted output to the console for my job. Is there something I may have missed?
c

chris

03/10/2023, 1:08 AM
hrm that looks right to me… and it’s specifically
ss
that you’re seeing the issue for?
b

Ben Wilson

03/10/2023, 1:09 AM
Hi @chris thanks for taking a look! I did try it with all my jobs and got the same
5 Views