Hi all, hopefully a quick question. Can `PREFECT__...
# ask-community
i
Hi all, hopefully a quick question. Can
PREFECT__LOGGING__EXTRA_LOGGERS
accept wildcards? So instead of something like
Copy code
flow.run_config = LocalRun(
    env={
        "PREFECT__LOGGING__EXTRA_LOGGERS": json.dumps([
            'foo.bar.aaa',
            'foo.bar.bbb',
        ])
    }
)
I could use
Copy code
flow.run_config = LocalRun(
    env={
        "PREFECT__LOGGING__EXTRA_LOGGERS": json.dumps([
            'foo.bar.*'
        ])
    }
)
With larger projects it's quite time consuming to add each class individually.
k
Hi @Ian Harvey! I will double check but unfortunately I believe the answer is no here.
i
I had tried myself, and couldn't get it to work, but was hoping there was some magical feature which would solve the issue. Thanks anyway. Maybe I can write some module crawling code which dumps a list of all files/classes to that variable on each new registry of the flow.
z
I'd have to take a further look as well, but with Python logging
foo.bar
should include all of the logs from
foo.bar.aaa
and
foo.bar.bbb
👍 2
i
ok yeah, that's worked. Sorry for the stupid question!
z
@Marvin archive "Capturing submodules with EXTRA_LOGGERS"