You probably want getLogger(__name__)
...or something close to it.
On Wed, Apr 27, 2022 at 12:58 PM תמר ווסה 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
>
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
Hello All,
I have an application where logging may need to be configured in
multiple places. I've used the Python Logging Framework for sometime,
but I'm still not sure how to test if logging has configured. For
example, I have modules A, B, and C.
Below is some pseudo code...
moduleA
class
On 2009-02-10 11:50, aha wrote:
Hello All,
I have an application where logging may need to be configured in
multiple places. I've used the Python Logging Framework for sometime,
but I'm still not sure how to test if logging has configured. For
example, I have modules A, B, and C.
Below
On Feb 10, 5:50 pm, aha aquil.abdul...@gmail.com wrote:
Hello All,
I have an application whereloggingmay need to be configured in
multiple places. I've used the PythonLoggingFramework for sometime,
but I'm still not sure how to test iflogginghas configured. For
example, I have modules A,
Thanks for your suggestions. I've also figured that I can test if
logging.RootLogger.manager.loggerDict has any items in it. Or if it
has a logger for the module that I wish to start. I like basicLogger
idea though as it seems like the cleanest implementation.
On Feb 10, 3:21 pm, Vinay Sajip
On Feb 10, 9:38 pm, aha aquil.abdul...@gmail.com wrote:
Thanks for your suggestions. I've also figured that I can test
iflogging.RootLogger.manager.loggerDict has any items in it. Or if it
has a logger for the module that I wish to start. I like basicLogger
idea though as it seems like the
I was wondering if there is a mechanism to encrypt logging
automatically in python.
The issue is as follows:
(a) An application (after py2exe) will go as executable and there
is no need for the user to know that it is written in python. If an
exception occurs and it is logged
On Fri, 09 Jan 2009 00:21:09 -0800, koranthala wrote:
I was wondering if there is a mechanism to encrypt logging automatically
in python.
The issue is as follows:
(a) An application (after py2exe) will go as executable and there
is no need for the user to know that it is written
On Jan 9, 3:16 pm, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
On Fri, 09 Jan 2009 00:21:09 -0800, koranthala wrote:
I was wondering if there is a mechanism to encrypt logging automatically
in python.
The issue is as follows:
(a) An application (after py2exe
On Jan 9, 8:02 am, koranth...@gmail.com wrote:
Also, what I am asking is a generic option in logging - which can help
the adoption of the logging framework in even closed source systems.
It is not just about security - just that a closed source company
might be much more comfortable in using
koranth...@gmail.com wrote:
I was wondering if there is a mechanism to encrypt logging
automatically in python.
Python's standard library doesn't include any strong symmetric
ciphers. But if you include for example a cryptographic module for AES,
for example, it should be easy (I guess 10
12 matches
Mail list logo