logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anshul Chhabra <achha...@tollbridgetech.com>
Subject RE: FileAppender and file Location & getOptions
Date Thu, 17 Jan 2002 19:49:48 GMT
This basically means that there is a potential bug if the setter is not used
in the setOption (instead the private var is set directly) - as there might
be extra processing that could potentially happen in subclasses.

Yes, I did mean 1.3.1 of Log4j

-----Original Message-----
From: T Master [mailto:tmaster@iknowledgeinc.com]
Sent: Thursday, January 17, 2002 11:44 AM
To: Log4J Users List
Subject: Re: FileAppender and file Location & getOptions


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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message