Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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:

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 ]
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!