Hello
This is suneel,Iam new to this Log4j. How can I use the DBAppender wrote this as Log4j.xml <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <pre> <connectionSource class="org.apache.log4j.jdbc.DriverManagerConnectionSource"> <param name="driver" value="com.mysql.jdbc.Driver" /> <param name="url" value="jdbc:mysql://192.168.1.225:3306/reddy" /> <param name="username" value="smarte2" /> <param name="password" value="smarte911"/> </connectionSource> </pre> <root> <level value="debug"/> </root> </log4j:configuration> Just after iam trying to run. it shows this error. log4j:INFO Using URL [file:/C:/Smartelog/build/web/WEB-INF/classes/log4j.xml] for automatic log4j configuration of repository named [default]. 0 [http-8084-Processor25] WARN org.apache.log4j.config.PropertySetter - No such property [driver] in org.apache.log4j.Hierarchy. 0 [http-8084-Processor25] WARN org.apache.log4j.config.PropertySetter - No such property [url] in org.apache.log4j.Hierarchy. 0 [http-8084-Processor25] WARN org.apache.log4j.config.PropertySetter - No such property [username] in org.apache.log4j.Hierarchy. 0 [http-8084-Processor25] WARN org.apache.log4j.config.PropertySetter - No such property [password] in org.apache.log4j.Hierarchy. Reported error: "no applicable action for <pre>, current pattern is [/configuration/pre]" at line 3 column 7 Reported error: "no applicable action for <connectionSource>, current pattern is [/configuration/pre/connectionSource]" at line 4 column 79 Plz tell me what can I do for this Iam waiting for ur reply. Thanks & Rgds, Yaramaka SuneelReddy. Software Engineer, Smarte Solutions, ph : + 91 9833022044
