Skip to content
Advertisement

Python logger dynamic filename

I want to configure my Python logger in such a way so that each instance of logger should log in a file having the same name as the name of the logger itself.

e.g.:

JavaScript

I want to keep it generic and dont want to hardcode all kind of logger names I can have. Is that possible?

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement