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

Martin Picard

12/16/2022, 3:32 PM
Hey everyone, I'm trying to get logs from a module that uses the python logging module, I tried everything on the docs https://docs.dagster.io/concepts/logging/python-logging#configuring-a-python-log-level but nothing works, where/how am I supposed to get these logs? running dagit locally I don't see it in the dagit process logs, or in the Run UI at all, even with all the log types checked
j

jamie

12/16/2022, 3:36 PM
cc @owen
a

Adam Bloom

12/16/2022, 4:58 PM
In case its helpful, I have this working. my `dagster.yaml`:
Copy code
python_logs:
  python_log_level: INFO
  managed_python_loggers:
    - reports
In my op/asset code, I have a logger that I instantiated with:
Copy code
import logging

logger = logging.getLogger("reports")
Anything logged to that logger at info or above is captured
D 1
m

Martin Picard

12/16/2022, 7:11 PM
what version are you running?
a

Adam Bloom

12/16/2022, 9:10 PM
I haven't updated for a few weeks - looks like 1.0.16
m

Martin Picard

12/19/2022, 8:29 AM
I think it broke in 1.1.6 and 1.1.7 (try other versions)
a

Adam Bloom

12/19/2022, 7:33 PM
Just updated to 1.1.7 - still working here
m

Martin Picard

12/20/2022, 2:22 PM
Yup I tried it again with a new project/virtualenv and it works again