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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Log4j custom appender
Similar Threads
String arguments
a question about "?:"
Determine type of a primitive
Game of Life Help
system.out.print with ternary operator