python logging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Diez B. Roggisch

    python logging

    Hi,

    I want to introduce cmd-line dependend verbosity into my app. What do you
    recommend? In java, I'd use log4j, and I know that there is a log4py
    module. I can use that, but is there some sort of standard?

    Regards,

    Diez
  • Gary Herron

    #2
    Re: python logging

    On Saturday 18 October 2003 08:45 am, Diez B. Roggisch wrote:[color=blue]
    > Hi,
    >
    > I want to introduce cmd-line dependend verbosity into my app. What do you
    > recommend? In java, I'd use log4j, and I know that there is a log4py
    > module. I can use that, but is there some sort of standard?
    >
    > Regards,
    >
    > Diez[/color]

    Now there is a standard:



    A small excerpt:

    6.28 logging -- Logging facility for Python

    New in version 2.3. This module defines functions and classes which
    implement a flexible error logging system for applications.
    ...

    Gary Herron



    Comment

    • Alan Kennedy

      #3
      Re: python logging

      [Diez B. Roggisch][color=blue]
      > I want to introduce cmd-line dependend verbosity into my app. What do you
      > recommend? In java, I'd use log4j, and I know that there is a log4py
      > module. I can use that, but is there some sort of standard?[/color]

      Indeed there is a standard: the "logging" module was introduced in
      python 2.3.



      You'll probably be happy to know that it borrows heavily from log4j.
      Extensive documentation and background information can be had from
      here:-



      HTH,

      --
      alan kennedy
      -----------------------------------------------------
      check http headers here: http://xhaus.com/headers
      email alan: http://xhaus.com/mailto/alan

      Comment

      Working...