Hi! I wonder if anyone have got the logging workin...
# troubleshooting
m
Hi! I wonder if anyone have got the logging working? I’m looking at the documentation (https://docs.meltano.com/guide/logging) and put a file in my repo root called logging.yml with the following:x§x§
Copy code
version: 1
disable_existing_loggers: false

formatters:
  structured_colored:
    (): meltano.core.logging.console_log_formatter
    colors: True
  json:
    (): meltano.core.logging.json_formatter

handlers:
  console:
    class: logging.StreamHandler
    level: INFO
    formatter: structured_colored
    stream: "<ext://sys.stderr>"
  file:
    class: logging.FileHandler
    level: DEBUG
    filename: meltano.log
    formatter: json

root:
  level: DEBUG
  propagate: yes
  handlers: [console, file]
But nothing happens when I start my job using meltano run. I am expecting a file called
meltano.log
to appear in my root directory.
( I’m seeing INFO messages in console output though)
e
Hey @marten_nilsson can you try
logging.yaml
, i.e. with the
a
in the extension?
(it's probably a bug if it doesn't pick up the other extension)
m
aha that was it 🤦 Thanks a lot