Re: logging library python

2022-04-27 Thread Dan Stromberg
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 >

logging library python

2022-04-27 Thread תמר ווסה
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

Logging in Python

2009-02-10 Thread aha
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

Re: Logging in Python

2009-02-10 Thread Robert Kern
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

Re: Logging in Python

2009-02-10 Thread Vinay Sajip
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,

Re: Logging in Python

2009-02-10 Thread aha
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

Re: Logging in Python

2009-02-10 Thread 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

Encrypted Logging in python

2009-01-09 Thread koranthala
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

Re: Encrypted Logging in python

2009-01-09 Thread Steven D'Aprano
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

Re: Encrypted Logging in python

2009-01-09 Thread koranthala
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

Re: Encrypted Logging in python

2009-01-09 Thread pruebauno
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

Re: Encrypted Logging in python

2009-01-09 Thread Gerhard Häring
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