You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Diogo Saad <di...@ibnetwork.com.br> on 2004/05/17 23:51:57 UTC

Logkit exception

I made a simples InSenderWhiteList Mailet and I got the following
exception!!
I arranged my classes in a jar file and I put it into james.sar file.
In this jar I gotta a conf/logkit.xconf that is listed bellow also.


17/05/04 18:45:40 ERROR spoolmanager: Unable to init matcher
InSenderWhiteList: org.apache.mailet.MailetException: Could not load
matcher (InSenderWhiteList);
  nested exception is:
 org.apache.avalon.framework.configuration.ConfigurationException: No
log targets configured for the root logger.
org.apache.mailet.MailetException: Could not load matcher
(InSenderWhiteList);
  nested exception is:
 org.apache.avalon.framework.configuration.ConfigurationException: No
log targets configured for the root logger.
 at
org.apache.james.transport.MatchLoader.getMatcher(MatchLoader.java:86)
 at
org.apache.james.transport.JamesSpoolManager.initialize(JamesSpoolManage
r.java:222)
...etc

--------------------------------conf/LOGKIT.XCONF
-----------------------------------------------------
<logkit logger="system.logkit" log-level="INFO">

    <factories>
      <factory type="stream"
class="org.apache.avalon.excalibur.logger.factory.StreamTargetFactory"/>
    </factories>

    <targets>
      <stream id="console">
        <stream>System.out</stream>
        <format type="extended">
          %7.7{priority} %23.23{time:yyyy-MM-dd HH:mm:ss.SSS}
[%24.24{category}] (%{context}): %{message}\n%{throwable}
        </format>
      </stream>
    </targets>

    <categories>
		<!-- Log output from the default logger  -->
		<category name="" log-level="INFO">
        	<log-target id-ref="console"/>
      	</category>

		<!-- Avoid the warning messages for default roles which
are not installed. -->
		<category name="system" log-level="ERROR">
			<log-target id-ref="console"/>
		</category>
		
		<category name="root" log-level="ERROR">
			<log-target id-ref="console"/>
		</category>

    </categories>

</logkit>



Thanks 


Diogo Saad
diogo@ibnetwork.com.br
Inter Business Tecnologia e Servicos


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


RE: Logkit exception

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I arranged my classes in a jar file and I put it into james.sar file.
> In this jar I gotta a conf/logkit.xconf that is listed bellow also.

Mailets log through the Mailet API.

	--- Noel

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