You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "FLYNN, Peter -Syntegra UK" <Pe...@syntegra.com> on 2002/07/25 12:26:46 UTC

Telnet Appender, Configuration and JVM_Bind

I have a centrally stored logging properties XML file, which I access using
HTTP.  

Inside this, I have the following snippet of XML...

<!-- Log everything under com.syntegra. to a rolling log and telnet session
on 5875 -->
<logger name="com.syntegra" additivity="false">
	<level value="DEBUG"/>
	<appender-ref ref="TELNET"/> 
	<appender-ref ref="ROLLINGLOG"/>
</logger>

<!-- Only log Config tool to local console -->
<logger name="com.syntegra.Config" additivity="false">
	<level value="DEBUG"/>
	<appender-ref ref="CONSOLE"/>
</logger>

Even though additivity is false, the Config tries to bind the Telnet
session, resulting in 
a JVM_Bind error when starting up, and a NullPointerException when the
append is made.

Surely it I have it set to false, it shouldn't be picking up the
TELNET/ROLLINGLOG appenders
for Config.

Is this a bug, or a configuration issue?

Regards,
Peter


********************************************************************

This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person
Thank you

Check us out at http://www.syntegra.com

********************************************************************


Re: Telnet Appender, Configuration and JVM_Bind

Posted by Ceki Gülcü <ce...@qos.ch>.

The additivity flag influences the way appenders attached to parent
loggers are handled. It does not affect the accumulation of loggers
attached to the same logger.

At 11:26 25.07.2002 +0100, FLYNN, Peter -Syntegra UK wrote:
>I have a centrally stored logging properties XML file, which I access using
>HTTP.
>
>Inside this, I have the following snippet of XML...
>
><!-- Log everything under com.syntegra. to a rolling log and telnet session
>on 5875 -->
><logger name="com.syntegra" additivity="false">
>         <level value="DEBUG"/>
>         <appender-ref ref="TELNET"/>
>         <appender-ref ref="ROLLINGLOG"/>
></logger>
>
><!-- Only log Config tool to local console -->
><logger name="com.syntegra.Config" additivity="false">
>         <level value="DEBUG"/>
>         <appender-ref ref="CONSOLE"/>
></logger>
>
>Even though additivity is false, the Config tries to bind the Telnet
>session, resulting in
>a JVM_Bind error when starting up, and a NullPointerException when the
>append is made.
>
>Surely it I have it set to false, it shouldn't be picking up the
>TELNET/ROLLINGLOG appenders
>for Config.
>
>Is this a bug, or a configuration issue?
>
>Regards,
>Peter

--
Ceki

For complete log4j documentation please refer to http://qos.ch/log4jBook.html


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>