Mailing List
Home
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Cocoon - MVC web framework based on XML/XSL
Lucene - Full-featured text search engine APIs
Log4J - A log library
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Renderers and Events

Renderers and Events

2003-05-26       - By Avner BenHanoch

 Back
Reply:     1     2     3     4     5  

Renderer is a class that used for rendering log-object into a String.  If
you are not registering a Renderer than log4j will simply call the
log-object's toString method.  If you send a String than log4j will simply
log that String.

Registering a Renderer should be used for classes that are often being
logged.

If your application convert the log-object into a String and send that
String to log4j debug/info/.. methods, you will have the same output.
However, using Renderers enable log4j do the rendering upon need (I.e.,
depends on the logging level).  This can save your application a lot of time
in case you have many things to log.

In addition, I think, if you use AsyncAppender, the rendering will occur in
the "background" instead of "delaying" your main threads for the time
toString consume, which can be expensive if you log a lot of things.   If
this is not accurate, please correct me.

---
LogEvent is a class that wraps the log-message you send to log4j.  It
contain the log-message, level, date, throwable, and maybe something else.


-- -- Original Message -- --
From: "Padmaja Manike" <padmajam@(protected)>
To: "Log4J Users List" <log4j-user@(protected)>
Sent: Monday, May 26, 2003 4:06 PM
Subject: Renderers and Events


Can anybody please explain in what context renderers and events in log4j
should be used.

Regards
Padmaja

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: log4j-user-unsubscribe@(protected)
For additional commands, e-mail: log4j-user-help@(protected)




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: log4j-user-unsubscribe@(protected)
For additional commands, e-mail: log4j-user-help@(protected)



Earn $52 per hosting referral at Lunarpages.