logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Villy Jørgensen (VIJ) <villy.joergen...@lindhard.com>
Subject Basic Question, Configuring WriterAppender
Date Tue, 26 Jun 2001 08:43:52 GMT
1) How do i configure the WriterAppender in a PropertyConfigurator config
file ?

2) A more general question: Is there a description (User Guide) how to set
parameters in a PropertyConfigurator config file ?

3) Related question: Is there a description (User Guide) how to use the XML
config file ?

4) I tried (without success) to use RollingFileAppender, what is the current
status of this ?

I am (forced to) using JDK 1.1.8 and get the error:

C:\java\jdk1.1.8\bin\javaw -classpath
"C:\Customers_2001\TestLog4J\classes;C:\java\log4j\lib\log4j.jar;C:\java\jdk
1.1.8\lib\classes.zip;C:\java\jdk1.1.8\demo\awt-1.1\lightweight\Gauge\actual
;C:\java\jdk1.1.8\demo\awt-1.1\lightweight\Gauge\alternative;C:\java\jdk1.1.
8\demo\awt-1.1\lightweight\Gauge\ExampleApplet.jar;C:\java\jdk1.1.8\demo\awt
-1.1\lightweight\Gauge\ExampleApplet.zip;C:\java\jdk1.1.8\demo\awt-1.1\light
weight\OpenlookButtons\actual;C:\java\jdk1.1.8\demo\awt-1.1\lightweight\Open
lookButtons\alternative;C:\java\jdk1.1.8\demo\awt-1.1\lightweight\OpenlookBu
ttons\ExampleApplet.jar;C:\java\jdk1.1.8\demo\awt-1.1\lightweight\OpenlookBu
ttons\ExampleApplet.zip;C:\java\jdk1.1.8\demo\awt-1.1\lightweight\Spinner\ac
tual;C:\java\jdk1.1.8\demo\awt-1.1\lightweight\Spinner\alternative;C:\java\j
dk1.1.8\demo\awt-1.1\lightweight\Spinner\ExampleApplet.jar;C:\java\jdk1.1.8\
demo\awt-1.1\lightweight\Spinner\ExampleApplet.zip"  MyApp 

java.lang.NoSuchMethodError: java.beans.Introspector: method
getBeanInfo(Ljava/lang/Class;I)Ljava/beans/BeanInfo; not found 	at
org.apache.log4j.RollingFileAppenderBeanInfo.<init>(Compiled Code) 	at
java.beans.Introspector.instantiate(Introspector.java:843) 	at
java.beans.Introspector.findInformant(Compiled Code) 	at
java.beans.Introspector.<init>(Compiled Code) 	at
java.beans.Introspector.getBeanInfo(Introspector.java:75) 	at
org.apache.log4j.config.PropertySetter.introspect(PropertySetter.java:66)
at org.apache.log4j.config.PropertySetter.getPropertyDescriptor(Compiled
Code) 	at
org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.java:146)
at org.apache.log4j.config.PropertySetter.setProperties(Compiled Code) 	at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.jav
a:637) 	at org.apache.log4j.PropertyConfigurator.parseCategory(Compiled
Code) 	at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigur
ator.java:502) 	at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
410) 	at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:
309) 	at
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:31
7) 	at MyApp.main(MyApp.java:16) 

Under JDK 1.3 is it Ok, but my environment requires JDK 1.1.8.




Kind regards

Villy Ib Jørgensen (VIJ)
System Consultant, B. Sc. E.E.
Lindhard A/S, Vanenburg Group Company
***************************************************
Address:	Bregnerødvej 144, DK-3460 Birkerød, Denmark
Telephone:	+45 45 94 01 42 (Personal), +45 40 10 95 06 (Mobile), +45 45
94 01 01 (Company)
E-mail: 	villy.joergensen@lindhard.com (Personal),
lindhard@lindhard.com (Company)
SMS: 	40109506@sms.tdm.dk (Personal)
Web:	http://www.lindhard.com (Company)
***************************************************

The information contained in this e-mail is confidential and intended for
the named recipient(s) only. Unless otherwise stated any views or opinions
presented are solely those of the author.




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


Mime
View raw message