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


Groups > comp.lang.python > #16083 > unrolled thread

What replaces log4py under Python 3.2?

Started byRob Richardson <RDRichardson@rad-con.com>
First post2011-11-22 18:32 +0000
Last post2011-11-24 02:06 +1100
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  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

#16083 — What replaces log4py under Python 3.2?

FromRob Richardson <RDRichardson@rad-con.com>
Date2011-11-22 18:32 +0000
SubjectWhat replaces log4py under Python 3.2?
Message-ID<mailman.2953.1321986769.27778.python-list@python.org>
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?

Thank you.

RobR

[toc] | [next] | [standalone]


#16088

FromIrmen de Jong <irmen@-NOSPAM-xs4all.nl>
Date2011-11-22 20:41 +0100
Message-ID<4ecbfacc$0$6859$e4fe514c@news2.news.xs4all.nl>
In reply to#16083
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

[toc] | [prev] | [next] | [standalone]


#16108

FromRob Richardson <RDRichardson@rad-con.com>
Date2011-11-23 14:07 +0000
Message-ID<mailman.2970.1322057163.27778.python-list@python.org>
In reply to#16088
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

[toc] | [prev] | [next] | [standalone]


#16109

FromPeter Otten <__peter__@web.de>
Date2011-11-23 15:18 +0100
Message-ID<mailman.2971.1322057912.27778.python-list@python.org>
In reply to#16088
Rob Richardson wrote:

> 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?  

How about

http://docs.python.org/py3k/library/logging.handlers.html#timedrotatingfilehandler

[toc] | [prev] | [next] | [standalone]


#16110

FromAlec Taylor <alec.taylor6@gmail.com>
Date2011-11-24 02:06 +1100
Message-ID<mailman.2972.1322060802.27778.python-list@python.org>
In reply to#16088
zing!

On Thu, Nov 24, 2011 at 1:18 AM, Peter Otten <__peter__@web.de> wrote:
> Rob Richardson wrote:
>
>> 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?
>
> How about
>
> http://docs.python.org/py3k/library/logging.handlers.html#timedrotatingfilehandler
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web