logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bender Heri" <HBen...@Ergonomics.ch>
Subject RE: Clarification
Date Wed, 06 Jul 2005 16:19:35 GMT
Usually I configure by XML file and I am not quite shure, but:

> log4j.appender.framework.File=framework.log=./logs/framework.log

seems to have one "=" to much.

Did it work with your first version "log4j.appender.framework.File=framework.log" ?


Heri


> -----Original Message-----
> From: Balaji Saranathan [mailto:balaji.saranathan@wipro.com]
> Sent: Wednesday, July 06, 2005 5:33 PM
> To: 'Log4J Users List'
> Subject: Clarification
> 
> 
> 
> 
> Hi,
> 
> Can you tell me if log4j creates the log file (if they are 
> not present)
> when using the FileAppenders or is it the responsibility of the
> developers to create the log files?
> I have a FileAppender configured and when I configure the
> log4j.appender.framework.File=framework.log=./logs/framework.log
> I get a the following error on stdout.log
> 
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: .\logs\framework.log (The system cannot
> find the path specified)
> 	at java.io.FileOutputStream.openAppend(Native Method)
> 	at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
> 	at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
> 	at org.apache.log4j.FileAppender.setFile(FileAppender.java:282)
> 	at
> org.apache.log4j.RollingFileAppender.setFile(RollingFileAppend
> er.java:16
> 5)
> 	at
> org.apache.log4j.FileAppender.activateOptions(FileAppender.java:161)
> 	at
> org.apache.log4j.config.PropertySetter.activate(PropertySetter
> .java:256)
> 	at
> org.apache.log4j.config.PropertySetter.setProperties(PropertyS
> etter.java
> :132)
> 	at
> org.apache.log4j.config.PropertySetter.setProperties(PropertyS
> etter.java
> :96)
> 	at
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyCo
> nfigurator
> .java:654)
> 	at
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyCo
> nfigurator
> .java:612)
> 	at
> org.apache.log4j.PropertyConfigurator.configureRootCategory(Pr
> opertyConf
> igurator.java:509)
> 	at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConf
> igurator.j
> ava:415)
> 	at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConf
> igurator.j
> ava:441)
> 	at
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(Op
> tionConver
> ter.java:468)
> 
> 
> 
> 
> 
> 
> 
> Confidentiality Notice 
> 
> The information contained in this electronic message and any 
> attachments to this message are intended
> for the exclusive use of the addressee(s) and may contain 
> confidential or privileged information. If
> you are not the intended recipient, please notify the sender 
> at Wipro or Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message