[logback-user] About the file location in File appender

Ralph Goers rgoers at apache.org
Tue Aug 18 00:57:06 CEST 2009


Relative paths have to be relative to something. It is almost  
universal that they will be relative to the path that was the working  
directory at the time the application was started. So in this respect  
Logback is just being consistent.  How else would you expect it to  
behave?

Ralph

On Aug 17, 2009, at 3:47 PM, Klaus Teller wrote:

> Hi,
>
> When i use the file appender and specify only the log file's name  
> (as opposed to absolute path), the log file is created in the  
> directory from which the application is started.
>
> For instance, if i start tomcat from the tomcat bin directory, the  
> log file is created right there in the bin directory. If i start  
> tomcat from my home directory, the log file will be created in my  
> home directory.
>
> Is this intentional? If so, can somebody help me understand the  
> rational?
>
> cheers,
> Klaus.
>
> -- 
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user



More information about the Logback-user mailing list