aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j custom appender" Watch "Log4j custom appender" New topic
Author

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:

DOMConfigurator.configure("log4j.xml");
Logger log = Logger.getLogger("ChatMessagesAppender."+args[0]+"."+args[1]);
log.info( 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.

FK
[ 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: http://aspose.com/file-tools
 
subject: Log4j custom appender
 
Similar Threads
Determine type of a primitive
a question about "?:"
Game of Life Help
system.out.print with ternary operator
String arguments