python logging

D

Diez B. Roggisch

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
 
G

Gary Herron

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

Now there is a standard:

http://www.python.org/doc/2.3.2/lib/module-logging.html

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
 
A

Alan Kennedy

[Diez B. Roggisch]
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?

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

http://www.python.org/doc/current/lib/module-logging.html

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

http://www.red-dove.com/python_logging.html

HTH,
 

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,169
Messages
2,570,915
Members
47,456
Latest member
JavierWalp

Latest Threads

Top