Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #16108

RE: What replaces log4py under Python 3.2?

From Rob Richardson <RDRichardson@rad-con.com>
Subject RE: What replaces log4py under Python 3.2?
Date 2011-11-23 14:07 +0000
References <mailman.2953.1321986769.27778.python-list@python.org> <4ecbfacc$0$6859$e4fe514c@news2.news.xs4all.nl>
Newsgroups comp.lang.python
Message-ID <mailman.2970.1322057163.27778.python-list@python.org> (permalink)

Show all headers | View raw


Thank you for that link.

Our customers are used to the rotating log file capability of the log4py package.  I did not see anything in that link that talks about rotating log files (changing file name when the date changes, and saving a limited number of old log files).  Is that possible using the stdlib logging package?  Is there something else available that will do that, so we don't have to roll our own (or, more likely, stick to Python 2.7, for which log4py works)?

Thanks again!

RobR

-----Original Message-----
From: python-list-bounces+rob.richardson=rad-con.com@python.org [mailto:python-list-bounces+rob.richardson=rad-con.com@python.org] On Behalf Of Irmen de Jong
Sent: Tuesday, November 22, 2011 2:41 PM
To: python-list@python.org
Subject: Re: What replaces log4py under Python 3.2?

On 22-11-11 19:32, Rob Richardson wrote:
> Greetings!
>
> My company has been using the log4py library for a long time.  A co-worker recently installed Python 3.2, and log4py will no longer compile.  (OK, I know that's the wrong word, but you know what I mean.)  What logging package should be used now?

The logging module from Python's stdlib?
http://docs.python.org/py3k/library/logging.html

Irmen

-----Original Message-----
From: python-list-bounces+rob.richardson=rad-con.com@python.org [mailto:python-list-bounces+rob.richardson=rad-con.com@python.org] On Behalf Of Irmen de Jong
Sent: Tuesday, November 22, 2011 2:41 PM
To: python-list@python.org
Subject: Re: What replaces log4py under Python 3.2?

On 22-11-11 19:32, Rob Richardson wrote:
> Greetings!
>
> My company has been using the log4py library for a long time.  A co-worker recently installed Python 3.2, and log4py will no longer compile.  (OK, I know that's the wrong word, but you know what I mean.)  What logging package should be used now?

The logging module from Python's stdlib?
http://docs.python.org/py3k/library/logging.html

Irmen


-- 
http://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What replaces log4py under Python 3.2? Rob Richardson <RDRichardson@rad-con.com> - 2011-11-22 18:32 +0000
  Re: What replaces log4py under Python 3.2? Irmen de Jong <irmen@-NOSPAM-xs4all.nl> - 2011-11-22 20:41 +0100
    RE: What replaces log4py under Python 3.2? Rob Richardson <RDRichardson@rad-con.com> - 2011-11-23 14:07 +0000
    RE: What replaces log4py under Python 3.2? Peter Otten <__peter__@web.de> - 2011-11-23 15:18 +0100
    Re: What replaces log4py under Python 3.2? Alec Taylor <alec.taylor6@gmail.com> - 2011-11-24 02:06 +1100

csiph-web