Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Silly ? - How do I figure out the name of the file the log is being written to?

    0 answers - 975 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    (FileAppender) Logger.getLogger( <aLoggerName).getAppender( <aAppenderName).getFile();
    Message
    From: Burton Strauss [mailto:Burton (AT) SmallNetSolutions (DOT) com]
    Sent: Thursday, December 01, 2005 5:10 AM
    To: log4j-user (AT) logging (DOT) apache.org
    Subject: Silly ? - How do I figure out the name of the file the log is
    being written to?
    (For want of a better explanation, I want to use
    system.out.println() to
    tell the user where to look for the log file)
    The log4j logging works great, but I can't figure out how to
    grab the file
    name so I can output it
    Thanks!
    To unsubscribe, e-mail: log4j-user-unsubscribe (AT) logging (DOT) apache.org
    For additional commands, e-mail: log4j-user-help (AT) logging (DOT) apache.org
    To unsubscribe, e-mail: log4j-user-unsubscribe (AT) logging (DOT) apache.org
    For additional commands, e-mail: log4j-user-help (AT) logging (DOT) apache.org

Re: Silly ? - How do I figure out the name of the file the log is being written to?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 4 =
QUESTION ON "Java"

EMSDN.COM