logging library python
Dan Stromberg
drsalists at gmail.com
Wed Apr 27 21:04:20 EDT 2022
You probably want getLogger(__name__)
...or something close to it.
On Wed, Apr 27, 2022 at 12:58 PM תמר ווסה <tamarp540 at 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
>
More information about the Python-list
mailing list