You probably want getLogger(__name__) ...or something close to it.
On Wed, Apr 27, 2022 at 12:58 PM תמר ווסה <tamarp...@gmail.com> wrote: > hello, > we have many scripts of one project. what is the right way to define the > logger to all scripts? we tried to create class that define the logger > configuration+generic function (handler functions to write generic log > message), and each script define an instance of the class. But the log > info is reference to the class script and not the right script. Should we > need not to use the class ? should we need define logger to each script ? > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list