Re: Logging in Python

2009-02-10 Thread Vinay Sajip
On Feb 10, 9:38 pm, aha 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 cleanest implementat

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 w

Re: Logging in Python

2009-02-10 Thread Vinay Sajip
On Feb 10, 5:50 pm, aha 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, B, and C. > > Below

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 is som

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 A(

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

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 usin

Re: Encrypted Logging in python

2009-01-09 Thread koranthala
On Jan 9, 3:16 pm, Steven D'Aprano 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) will go as executable and there >

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 i

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, then the us