logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T Master" <tmas...@iknowledgeinc.com>
Subject Re: FileAppender and file Location & getOptions
Date Thu, 17 Jan 2002 19:44:29 GMT
There is no way to set a log directory.
You want to set the actual file name.
use  fileAppender.setFile( "/foo/bar/mylog.txt")    .

Look up its usage in the javadoc for FileAppender.


Read up on the terminolgy for deprecated.  It meanswill be
discontinued/unsupported in future sometime  (not recommened for use).  The
code is still existant.

You mean log4j v1.1.3 i assume.

T Master


----- Original Message -----
From: "Anshul Chhabra" <achhabra@tollbridgetech.com>
To: "'Log4J Users List'" <log4j-user@jakarta.apache.org>
Sent: Thursday, January 17, 2002 12:18 PM
Subject: FileAppender and file Location & getOptions


> Hi
> I know that the getOptions is deprecated in 1.3.1. That basically
> means that Log4j itself does not use it internally, and recommends that
> users not use it either.
>
> Coming to getOptions on FileAppender - shouldn't the code be cleaned
> up so that it uses setters instead of directly setting the internal
> variables? In the case of FileAppender it is not so (and perhaps it is a
> more general problem as well).
>
> Is there currently no way of separately specifying a directory name
> in which you want the logs to go? Has anybody extended the FileAppender to
> support this capability on a per appender basis?
>
>
> Thanks
> Anshul
>


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message