logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36961] - log4js - Logging for JavaScript
Date Wed, 16 Nov 2005 19:08:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36961>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36961





------- Additional Comments From schisamo@alumni.nd.edu  2005-11-16 20:08 -------
Created an attachment (id=16977)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=16977&action=view)
improved version that supports multiple appenders

I've cleaned the log4js code up a little and have also added the ability to
have a message write to multiple appenders.  Just declare the appenders with
setAppdender like normal, except set more than one:

<code>
var log = new Logger(LogLevel.TRACE);
log.setAppender(new MetaAppender());
log.setAppender(new WindowAppender());
</code>

I have also added two new appenders:

    * FileAppender - This appender logs all messages to a log file.  This will
only work in IE or an HTA application.
    * WindowsEventAppender - This appender logs all messages to the Windows
Event Log.  This will only work in IE or an HTA application.

Even though both appenders only work on Windows and in IE they are very useful
for those of us who use JavaScript/JScript in our HTA development. 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message