Renderers and Events 2003-05-27 - By Shapira, Yoav
Back
Howdy,
>another problem. Because you call 'toString' from your threads. If you >pass object instead of String, then the rendering (either by a registered >renderer or by toString) will take place in log4j threads. This can be >important, if you use AsyncAppender.
I accept your point on this, as I don't use AsyncAppender and thus haven't run across this.
>Another reason for OR, is that you can configure it thru log4j >configuration file. This enables you to change the format of the log >without needing to compile anything.
This, too, is an interesting point. So you have multiple pre-compiled (and mostly unused?) renderers and change which renderer you use at runtime?
I haven't had the need to change the format of my logs in production, so I haven't run across the second point either. But it's interesting ;)
Yoav Shapira
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: log4j-user-unsubscribe@(protected) For additional commands, e-mail: log4j-user-help@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|