Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j custom appender

 
Faisal Khan
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic