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 Tom Witmer <tm...@evolving.com> on 2002/09/17 20:58:55 UTC
Dumb question about logging in Windows
Hi!
I'm a very happy user of Log4j, but am having trouble porting my
log4j.properties files from Unix to Windows. Briefly, I can set my
rolling file appender's "File" attribute to "/home/app/logs/App.log" and
it works wonderfully.
When I try to bring the application over to Windows, I've been
finding I need to specify files with double-backslashes, as in
"...File=C:\\App\\logs\\App.log". Am I doing this right? Is there a
better idiom for using log4j in Windows?
- Tom
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Dumb question about logging in Windows
Posted by Colin MacDonald <co...@templarcorp.com>.
> -----Original Message-----
>
> When I try to bring the application over to Windows, I've been
> finding I need to specify files with double-backslashes, as in
> "...File=C:\\App\\logs\\App.log". Am I doing this right? Is there a
> better idiom for using log4j in Windows?
Actually, you should just be able to use forward slashes, like:
...File=C:/App/logs/App.log
Even on Windows, Java is unix-y in its treatment of slashes.
-----------------------------------------------------------------
Colin MacDonald | Software Developer | Templar Corporation |
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/2002
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>