Although I have not tested it, your config file looks good to me. I suggest
you change it as follows:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="true" 
xmlns:log4j="http://jakarta.apache.org/log4j/"; >
etc...

The debug attribute will cause log4j to output internal debug messages so that
you can see how log4j is parsing your config file.

I suppose you are calling 
DOMConfigurator.configure("SOME_PATH/log4jcfg.xml") somewhere
in your code. Right?


At 13:26 02.05.2002 -0500, you wrote:
>Probably dumb, but I can't figure it out.
>
>Here's my configuration:
>
><?xml version="1.0" encoding="UTF-8" ?>
><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
><log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"; >
>    <appender name="applog" class="org.apache.log4j.DailyRollingFileAppender">
>       <layout class="org.apache.log4j.PatternLayout">
>         <param name="ConversionPattern" value="%d{DATE} %p %t %c - %m%n"/>
>         <param name="File" value="AutoPublish.log" />
>         <param name="DatePattern" value="'.'yyyy-MM-dd'.log'"/>
>       </layout>
>    </appender>
>    <root>
>       <priority value="debug"/>
>       <appender-ref ref="applog" />
>    </root>
></log4j:configuration>
>
>This is stored in a file named log4jcfg.xml.
>
>When I attempt to log against this, I get the following error messages:
>
>log4j:WARN No appenders could be found for logger 
>(com.ignitesports.autopublish).
>log4j:WARN Please initialize the log4j system properly.
>
>The fact that I am getting log4j errors indicates to me that there are no 
>more issues about finding classes needed and that logging has been initialized.
>
>The troubleshooting guide says this about this error:
>
>Log4j does not have a default logging target.  It is the user's 
>responsibility to ensure that all categories can inherit an appender. This 
>can be easily achieved by attaching an appender to the root category.
>
>Haven't I attached the "applog" appender to the root in the above config 
>script?
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
Ceki


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to