robinhood / faust

Python Stream Processing
Other
6.72k stars 535 forks source link

How do I set the log level when using the faust CLI? #703

Open pmantica1 opened 3 years ago

pmantica1 commented 3 years ago

In other words, how do I set the log level to something different than WARN when running app.main()? Sorry in advance if this is not the right place to post this question, but I couldn't figure this out after a couple of hours and I get the feeling that you all might be able to answer my question swiftly. Thanks for open sourcing this amazing library!

taybin commented 3 years ago

faust worker -l info

pmantica1 commented 3 years ago

Thanks for replying! But I am still not clear how would I set it when running a command instead of the worker?

Lopofsky commented 3 years ago

Programmatically you mean?

Have you tried the logging_config or logging.config.dictConfig parameters, inside the app's constructor?