On Mar 29, 2010, at 2:05 PM, Deric Page wrote:
> if (fileAppender != null) {
> String logFolder =
> ((RollingFileAppender)fileAppender).getFile();
> logFolder = logFolder.substring(1,
> logFolder.lastIndexOf(File.pathSeparator));
> logName = logFolder + File.pathSeparator + logId + ".log";
> }
>
logFolder.substring(1, ...) would drop the first character of the string. If
you use a relative path (like you'd get if you drop the leading slash), it
would be resolved relative to the current working directory.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]