log4mongo / log4mongo-python

python logging handler for mongo database
http://log4mongo.org
Other
111 stars 37 forks source link

Can log4mongo be configured by logging config file? #40

Closed daqscott closed 3 months ago

daqscott commented 5 years ago

I can't find any examples of such in the documentation or code. I would like to configure the logger the same way as I configure the rest of my logging in my code.

oz123 commented 5 years ago

You can easily add a parser for that. See the logging module documentation for that. However, it's not a bad idea to use python code as configuration, after all it is very readable and there is no compiling involved.

daqscott commented 5 years ago

I've been trying to figure out how to make it work with the configuration file and not having much luck. Do you think you could supply an example of a working config file that I could copy off? Thanks!

On Fri, Aug 16, 2019 at 6:11 AM Oz N Tiram notifications@github.com wrote:

You can easily add a parser for that. See the logging module documentation for that. However, it's not a bad idea to use python code as configuration, after all it is very readable and there is no compiling involved.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/log4mongo/log4mongo-python/issues/40?email_source=notifications&email_token=AAENMHTEWDI44GSEFVWXZSDQEZ4NTA5CNFSM4IMFT6N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4OHUYI#issuecomment-521960033, or mute the thread https://github.com/notifications/unsubscribe-auth/AAENMHRAL33HJ7YXAZIDKDTQEZ4NTANCNFSM4IMFT6NQ .

oz123 commented 5 years ago

I'm not using this project actively and I have very little time to work on this for free. Contact me in private if you want help with this.