I see the fact that every project have its own built-in
simple logging/debugging facility.

I've developed a simple yet powerfull logging subsystem for
my own project and you may consider using it (I would be
glad to help porting it to Turbine's package structure).

There's a Logger that receives LogEvents produced by LogProducers
(actually LogSources) that are forwarded to LogListeners. It include 
classes such as SimpleLogListeners as well as RotateLogListeners and 
OperatorLogListener (e-mails desired log events to predefined 'Operator'
using javax.mail) and it's quite easy to create new custom LogListeners.

Every sybsystem operates under it's own "realm" and Listeners 
can [dinamically] filter events based on the producer's realm/XML-tags.

Logged objects can optionally implement Loggeable interface
and get their 'dump()' method called (instead of toString()).
Exceptions as well as SQLExceptions gets custom treatment
and I'm planning to do so with ECS's Elements.

Output is "XML-like" easily parseable by LogListeners or
post procesed by external XML aware filters.

Although it may seem too complex for just logging/debuging 
it's a thin layer and quite simple to use, you just create a LogEvent, 
populate it with addMessage() and then Logger.log(event); 
(You are familiar with ECS, it's kinda adding elements to 
an ECS ElementContainer).

Docs are available at 
http://www.cs.com.uy/jPOS/doc/uy/com/cs/jpos/util/package-summary.html

PS.- I'm new to this list - please let me know if this kind of
     "50% offtopic" posts are considered noise here. Thanks.

--Alejandro

On Mon, Feb 14, 2000 at 12:08:08AM -0800, Kevin A. Burton wrote:
> # The full path name to a log file
> # if not given, commands to log events using org.apache.turbine.util.Log
> will be ignored.
> # This file must already exist and be writable.
> 
> ???
> 
> Is there a reason for this?  I don't like this.  It isn't the behavior
> of Apache or JServ.  Specifically it is really cool for debuging
> purposes to 
> 
> - make a config change 
> - rm /usr/local/apache/logs/*
> 
> And then see what has changed.  If we wanted to do this with turbine we
> would have to touch the file.
> 
> -1
> 
> Kevin
> 
> -- 
> 
> Kevin A Burton
> http://relativity.yi.org
> Message to SUN:  "Open Source Java!"
> "For evil to win is for good men to do nothing."
> 
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to