You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Burton Strauss <Bu...@SmallNetSolutions.com> on 2005/12/01 05:09:54 UTC
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!
-----Burton
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
RE: Silly ? - How do I figure out the name of the file the log is being written to?
Posted by Burton Strauss <Bu...@SmallNetSolutions.com>.
Log4j.properties (I dumped that file and the test program into my other
reply)
Thanks!
-----Burton
-----Original Message-----
From: Paul Smith [mailto:psmith@aconex.com]
Sent: Wednesday, November 30, 2005 10:13 PM
To: Log4J Users List
Subject: Re: Silly ? - How do I figure out the name of the file the log is
being written to?
are you creating the FileAppender with code, or via the log4j configuration
mechanism (ie log4j.properties/xml) ?
Paul
On 01/12/2005, at 3:09 PM, Burton Strauss wrote:
> (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!
>
> -----Burton
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Silly ? - How do I figure out the name of the file the log is being written to?
Posted by Paul Smith <ps...@aconex.com>.
are you creating the FileAppender with code, or via the log4j
configuration mechanism (ie log4j.properties/xml) ?
Paul
On 01/12/2005, at 3:09 PM, Burton Strauss wrote:
> (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!
>
> -----Burton
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>