Re: Weblogic and log4j

2002-09-17 Thread sudhendra seshachala
Another question: Is there a way to know > programmatically (in java class) if log4j has > started successfully. Like I want to check the > status of log4j startup and exit incase the startup > has failed. Use log4j.debug=true. This will help a lot in ur case. U will need a console and File a

Weblogic and log4j

2002-09-17 Thread Priya K
Hi, I am trying to use log4j in EJB's and was successful in send the log msg from the beans. But the problems is that the log msgs are not appearing in the output log files. But if, I comment out the category so that all the log msgs go to rootlogger(i.e console ), I can see the msgs on th

Re: Dumb question about logging in Windows

2002-09-17 Thread Tom Witmer
WJCarpenter wrote: >>I believe Java is smart enough to change forward slashes to back >>slashes in file names, so C:/App/logs/app.log may work. >> >> > >It's not Java that has those smarts. Most recent versions of MSWindows >will accept slashes in either direction. (It also forbids both in

Re: Dumb question about logging in Windows

2002-09-17 Thread WJCarpenter
> I believe Java is smart enough to change forward slashes to back > slashes in file names, so C:/App/logs/app.log may work. It's not Java that has those smarts. Most recent versions of MSWindows will accept slashes in either direction. (It also forbids both in filenames.) So, Java just hands

Re: Dumb question about logging in Windows

2002-09-17 Thread Bill . Blalock
Windows use the black slash as the folder/directory separator. Java uses the same character as an escape character. To to put a single back-slash in a file name you have to put in two of them as you have found. I believe Java is smart enough to change forward slashes to back slashes in file na

RE: Dumb question about logging in Windows

2002-09-17 Thread Colin MacDonald
> -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 sh

Dumb question about logging in Windows

2002-09-17 Thread Tom Witmer
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'v