File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Log4j custom appender Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j custom appender" Watch "Log4j custom appender" New topic

Log4j custom appender

Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
I have a class X with the following lines of code in the main:

Logger log = Logger.getLogger("ChatMessagesAppender."+args[0]+"."+args[1]); args[2] );

How do I work out what the value of args[0] was set to, from within theChatMessagesAppender class?

Any help will be apprecited.

[ July 01, 2004: Message edited by: Faisal Khan ]

The secret to creativity is knowing how to hide your sources.
I agree. Here's the link:
subject: Log4j custom appender
It's not a secret anymore!