logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis ANDRE <francis.andre.kampb...@orange.fr>
Subject Help on log4j:WARN No appenders could be found for logger
Date Fri, 21 Aug 2009 12:02:05 GMT
lHi

I got this well known WARN from log4j but cannot find out what's the 
problem is. Can someone help solving this issue??

Here the trace for log4j and the initiator.log4j configuration file joined.

Thanks in advance.



log4j: Using URL [file:/Z:/isode-8.0/iso.itu.osi/cfg/initiator.log4j] 
for automatic log4j configuration.
log4j: Reading configuration from URL 
file:/Z:/isode-8.0/iso.itu.osi/cfg/initiator.log4j
log4j: Could not find root logger information. Is this OK?
log4j: Finished configuring.
connecting...
log4j:WARN No appenders could be found for logger 
(initiator.iso.itu.osi.acsap).
log4j:WARN Please initialize the log4j system properly.
Local : /127.0.0.1:2819
Remote: localhost/127.0.0.1:102
connected
abcdefghijklmnopqrstuvwxyz
AcSAPEchoClient.PSyncMajorConfirmation:ssn=000001
ABCDEFGHIJKLMNOPQRSTUVWXYZ
AcSAPEchoClient.PSyncMajorConfirmation:ssn=000002
abcdefghijklmnopqrstuvwxyz
AcSAPEchoClient.PSyncMajorConfirmation:ssn=001001
ABCDEFGHIJKLMNOPQRSTUVWXYZ
AcSAPEchoClient.PSyncMajorConfirmation:ssn=001002
abcdefghijklmnopqrstuvwxyz
AcSAPEchoClient.PSyncMajorConfirmation:ssn=001001

------------------------------------------------------------------------

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/' debug='true' >

	<appender name='console' class='org.apache.log4j.ConsoleAppender'> 
		<param name='Target' value='System.out'/> 
		<layout class='org.apache.log4j.PatternLayout'> 
			<param name='ConversionPattern' value='%-9p %5c{1} - %m%n'/> 
		</layout> 
	</appender> 
	
	<appender name='stdout' class='org.apache.log4j.FileAppender'> 
		<param name='File' value='log/tsap.log'/> 
		<param name='Append' value='true'/> 
		<layout class='org.apache.log4j.PatternLayout'> 
			<param name='ConversionPattern' value='%-9p %5c{1} - %m%n'/> 
		</layout> 
	</appender>


	<!--  TSAP -->
	<appender name='initiator.tsap.log' class='org.apache.log4j.FileAppender'> 
		<param name='File' value='log/client.tsap.log'/> 
		<param name='Append' value='true'/> 
		<layout class='org.apache.log4j.PatternLayout'> 
			<param name='ConversionPattern' value='%d{ISO8601}: %-9p %5c{1} -  %m\n'/> 
		</layout> 
	</appender> 


	
	<!-- SSAP -->
	<appender name='initiator.ssap.log' class='org.apache.log4j.FileAppender'> 
		<param name='File' value='log/client.ssap.log'/> 
		<param name='Append' value='true'/> 
		<layout class='org.apache.log4j.PatternLayout'> 
			<param name='ConversionPattern' value='%d{ISO8601}: %-9p %5c{1} - %m\n'/> 
		</layout> 
	</appender> 


	<!-- PSAP -->
	<appender name='initiator.psap.log' class='org.apache.log4j.FileAppender'> 
		<param name='File' value='log/client.psap.log'/> 
		<param name='Append' value='true'/> 
		<layout class='org.apache.log4j.PatternLayout'> 
			<param name='ConversionPattern' value='%d{ISO8601}: %-9p %5c{1} -  %m\n'/> 
		</layout> 
	</appender> 


	<!-- AcSAP -->
	<appender name='initiator.acsap.log' class='org.apache.log4j.FileAppender'> 
		<param name='File' value='log/client.acsap.log'/> 
		<param name='Append' value='true'/> 
		<layout class='org.apache.log4j.PatternLayout'> 
			<param name='ConversionPattern' value='%d{ISO8601}: %-9p %5c{1} -  %m\n'/> 
		</layout> 
	</appender> 


	<!-- RoSAP -->
	<appender name='initiator.rosap.log' class='org.apache.log4j.FileAppender'> 
		<param name='File' value='log/client.rosap.log'/> 
		<param name='Append' value='true'/> 
		<layout class='org.apache.log4j.PatternLayout'> 
			<param name='ConversionPattern' value='%d{ISO8601}: %-9p %5c{1} -  %m\n'/> 
		</layout> 
	</appender> 


	<!-- MSAP -->
	<appender name='initiator.msap.log' class='org.apache.log4j.FileAppender'> 
		<param name='File' value='log/client.msap.log'/> 
		<param name='Append' value='true'/> 
		<layout class='org.apache.log4j.PatternLayout'> 
			<param name='ConversionPattern' value='%d{ISO8601}: %-9p %5c{1} -  %m\n'/> 
		</layout> 
	</appender> 

	<!-- INITIATOR logger -->
	<category name='initiator.iso.itu.osi' class='iso.itu.osi.sap.SAPLogger'>
	</category>

	
	<!-- TSAP logger -->
	<category name='initiator.iso.itu.osi.tsap' class='iso.itu.osi.tsap.TSAPLogger'>
		<priority value ='fatal' class='iso.itu.osi.sap.SAPLevel'/> 
		<appender-ref ref='initiator.tsap.log' /> 
	</category>

	
	<!-- SSAP logger -->
	<category name='initiator.iso.itu.osi.ssap' class='iso.itu.osi.ssap.SSAPLogger'>
		<priority value ='fatal' class='iso.itu.osi.sap.SAPLevel'/> 
		<appender-ref ref='initiator.ssap.log' /> 
	</category>


	<!-- PSAP logger -->
	<category name='initiator.iso.itu.osi.psap' class='iso.itu.osi.psap.PSAPLogger'>
		<priority value ='fatal' class='iso.itu.osi.sap.SAPLevel'/> 
		<appender-ref ref='initiator.psap.log' /> 
	</category>


	<!-- AcSAP logger -->
	<category name='initiator.iso.itu.osi.acsap' class='iso.itu.osi.acsap.AcSAPLogger'>
		<priority value ='trace' class='iso.itu.osi.sap.SAPLevel'/> 
		<appender-ref ref='initiator.acsap.log' /> 
	</category>


	<!-- RoSAP logger -->
	<category name='initiator.iso.itu.osi.rosap' class='iso.itu.osi.rosap.RoSAPLogger'>
		<priority value ='trace' class='iso.itu.osi.sap.SAPLevel'/> 
		<appender-ref ref='initiator.rosap.log' /> 
	</category>


	<!-- MSAP logger -->
	<category name='initiator.iso.itu.osi.msap' class='iso.itu.osi.msap.MSAPLogger'>
		<priority value ='trace' class='iso.itu.osi.sap.SAPLevel'/> 
		<appender-ref ref='initiator.msap.log' /> 
	</category>


	<!-- SPDU logger -->
	<category name='initiator.iso.itu.osi.ssap.spdu' class='iso.itu.osi.ssap.SSAPLogger'>
		<appender-ref ref='initiator.ssap.log' /> 
	</category>

	<root> 
		<priority value ='fatal' class='iso.itu.osi.sap.SAPLevel'/> 
		<appender-ref ref='console' /> 
		<appender-ref ref='stdout' /> 
	</root>
  
	
</log4j:configuration>




---------------------------------------------------------------------
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