python 2.4 logging module

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pramod

    python 2.4 logging module

    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

  • Vinay Sajip

    #2
    Re: python 2.4 logging module

    Pramod wrote:
    [color=blue]
    > 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[/color]

    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

    Comment

    Working...