python 2.4 logging module

P

Pramod

Hi All,

How can I remove an Instance of logger ?
I need this feature in one of my script where I need to associate each
time logger instance to different handler.

Thanks in advance
Pramod
 
V

Vinay Sajip

Pramod said:
Hi All,

How can I remove an Instance of logger ?
I need this feature in one of my script where I need to associate each
time logger instance to different handler.

Thanks in advance
Pramod

Are you sure you are using logging in the right way? What do you mean
by "each time"?

You can use addHandler and removeHandler, but the Logger instance stays
- it's effectively a singleton.

Vinay Sajip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,289
Messages
2,571,448
Members
48,126
Latest member
ToneyChun2

Latest Threads

Top