Re: [Zope-dev] improved logging

2002-03-04 Thread Dieter Maurer

Florent Guillaume writes:
  Except that syslog (with all its faults) is designed for reliable
  logging, which means that if you send to your log 1000 lines, syslog
  will sync 1000 times thus trashing your disks.
Decent syslog implementations (such as the one distributed with
SuSE Linux) let you configure whether a log file will be synched after
every message.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] improved logging

2002-03-02 Thread Florent Guillaume

Toby Dickenson  [EMAIL PROTECTED] wrote:
 Or the humble syslog, which is good enough to keep me happy at the
 moment.

Except that syslog (with all its faults) is designed for reliable
logging, which means that if you send to your log 1000 lines, syslog
will sync 1000 times thus trashing your disks.

For low volume logs I guess it's ok, but not in the general case.

Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] improved logging

2002-03-01 Thread Chris Withers

Romain Slootmaekers wrote:
 
 - Loggers (fi, file logger, db loggers, remote logger, nulllogger,...)

Zope already has a filer logger, I dunno what you mean by db, remote and null loggers,
perhaps you can explain?

 - Filters (fi on severity, on subsystem, ...)

zLOG already provides this. 

Set STUPID_LOG_SEVERITY to the level you want
Dunno about subsystem. subsystem is passed to zLOG, so maybe you could do a patch which
lets subsystem also be controlled by an environment.

 - LogBus (central accesspoint for the logging framework,
   where you can (dynamically) hook your loggers, filters etc...

This is prettymuch what zLOG is. Take a look at my MailingLogger product for an 
example.
It emails log messages with the specified parameters to an address you specify and
provides an example for rolling your own loggers.

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] improved logging

2002-03-01 Thread Frank Tegtmeyer

Romain Slootmaekers [EMAIL PROTECTED] writes:

 db= log to database...
 
 remote:what if you want your logs to be put on another machine
 
 null logger does nothing.

Handling the log output should be _completely_ separated from
Zope.
On the fly changes to log levels and separating ouput to different
output channels would be good.

Regards, Frank

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] improved logging

2002-03-01 Thread Chris McDonough

Have you looked at EventLogManager?
http://www.zope.org/Members/mcdonc/Products/EventLogManager

If I had it to do over again, I'd change lots, but it does do what you're
asking for.

 what if I want to split the logs based on some condition
 I have to change code in Zope, and restart the server ...
 that's not the way something like this should be done.



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] improved logging

2002-03-01 Thread Toby Dickenson

On 01 Mar 2002 16:27:18 +0100, Frank Tegtmeyer [EMAIL PROTECTED]
wrote:

Completely separated means that it isn't Zope's job to care for rotating
logs, filtering them and what else you could do to logs. There are
lots of programs out there that are specialized in handling log data.

We for example use a setup with the multilog program from Dan
Bernsteins multilog package (see
http://www.lightwerk.com/zope/logging) which separates the function
from Zope.

Or the humble syslog, which is good enough to keep me happy at the
moment.

Im suprised we dont have more requests from the NT users for using the
NT Event log.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] improved logging

2002-03-01 Thread Jeffrey P Shell

See PEP 282 [1].  If this PEP is accepted, work should probably follow its
course.  It would be nice to have a single logging mechanism for Python, and
for Zope to use and/or extend it.  Granted, if it is accepted, it won't be
in Python until Python 2.3 which I believe is due in August.

..[1] http://python.sourceforge.net/peps/pep-0282.html

On 2/28/02 3:34 PM, Romain Slootmaekers [EMAIL PROTECTED] wrote:

 
 Yo,
 questions wrt logging:
 
 -) What are the plans to improve the rather primitive logging facilities
 in zope ?
 I couldn't find anything in the plan for 2.6, nor on the 3.0 homepage.
 I think we need at least an extendibl framework with following types of
 components:
 
 - Loggers (fi, file logger, db loggers, remote logger, nulllogger,...)
 - Filters (fi on severity, on subsystem, ...)
 - LogBus (central accesspoint for the logging framework,
 where you can (dynamically) hook your loggers, filters etc...
 
 if time is an issue, we could just copy the design of fi Log4J which is a
 good logging framework for apache.
 
 -) If there are no such plans, can we hack something up ourselves and
 add/donate it to the product ? I hate writing stuff that gets replaced by
 something else afterwards 
 
 input appreciated.
 
 Sloot.

-- 
Jeffrey P Shell 
www.cuemedia.com



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] improved logging

2002-02-28 Thread Romain Slootmaekers


Yo,
questions wrt logging:

-) What are the plans to improve the rather primitive logging facilities
in zope ?
I couldn't find anything in the plan for 2.6, nor on the 3.0 homepage.
I think we need at least an extendibl framework with following types of
components:

- Loggers (fi, file logger, db loggers, remote logger, nulllogger,...)
- Filters (fi on severity, on subsystem, ...)
- LogBus (central accesspoint for the logging framework,
  where you can (dynamically) hook your loggers, filters etc...

if time is an issue, we could just copy the design of fi Log4J which is a
good logging framework for apache.
 
-) If there are no such plans, can we hack something up ourselves and
add/donate it to the product ? I hate writing stuff that gets replaced by
something else afterwards 

input appreciated.

Sloot.
 







___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] improved logging

2002-02-28 Thread John Ziniti

http://freshmeat.net/projects/log4py/


Romain Slootmaekers wrote:
 Yo,
 questions wrt logging:
 
 -) What are the plans to improve the rather primitive logging facilities
 in zope ?
 I couldn't find anything in the plan for 2.6, nor on the 3.0 homepage.
 I think we need at least an extendibl framework with following types of
 components:
 
 - Loggers (fi, file logger, db loggers, remote logger, nulllogger,...)
 - Filters (fi on severity, on subsystem, ...)
 - LogBus (central accesspoint for the logging framework,
   where you can (dynamically) hook your loggers, filters etc...
 
 if time is an issue, we could just copy the design of fi Log4J which is a
 good logging framework for apache.
  
 -) If there are no such plans, can we hack something up ourselves and
 add/donate it to the product ? I hate writing stuff that gets replaced by
 something else afterwards 
 
 input appreciated.
 
 Sloot.
  
 
 
 
 
 
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )
 
 
 



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )