<?xml version="1.0" encoding="UTF-8"?>
<!-- 
============================================================================ 
Name        : log4j.xml 
Part of     : Helium 

Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
This component and the accompanying materials are made available
under the terms of the License "Eclipse Public License v1.0"
which accompanies this distribution, and is available
at the URL "http://www.eclipse.org/legal/epl-v10.html".

Initial Contributors:
Nokia Corporation - initial contribution.

Contributors:

Description:

============================================================================
-->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

    <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
            <appender-ref ref="FILE"/>
            <appender-ref ref="CONSOLE"/>
    </appender>

    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
               <param name="ConversionPattern" 
                            value="%d{HH:mm:ss,SSS}  %-2p - %-20c{1} - %m  %n"/>
        </layout>
    <filter class="org.apache.log4j.varia.LevelMatchFilter">
      <param name="LevelToMatch" value="DEBUG" />
      <param name="AcceptOnMatch" value="false" />
    </filter>
    </appender>


    <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="${log4j.cache.dir}/hlm_debug.log"/>
        <param name="append" value="true"/>
        <layout class="org.apache.log4j.PatternLayout">
               <param name="ConversionPattern" 
                            value="%d{HH:mm:ss,SSS}  %-2p - %-20c{1} - %m  %n "/>
        </layout>
    <filter class="org.apache.log4j.varia.LevelMatchFilter">
      <param name="LevelToMatch" value="DEBUG" />
      <param name="AcceptOnMatch" value="true" />
    </filter>
    <filter class="org.apache.log4j.varia.DenyAllFilter"/>
    </appender>

    <appender name="FILE-listener" class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="${log4j.cache.dir}/hlm_listener.log"/>
        <param name="MaxFileSize" value="1024KB"/>
        <param name="append" value="false"/>
        <layout class="org.apache.log4j.PatternLayout">
               <param name="ConversionPattern" 
                            value="%d{HH:mm:ss,SSS}  %-2p - %-20c{1} - %m  %n"/>
        </layout>
    <filter class="org.apache.log4j.varia.LevelMatchFilter">
      <param name="LevelToMatch" value="DEBUG" />
      <param name="AcceptOnMatch" value="true" />
    </filter>
    <filter class="org.apache.log4j.varia.DenyAllFilter"/>
    </appender>

  <logger name="com.nokia" additivity="false">
      <level value="DEBUG" />
    <appender-ref ref="ASYNC" />
  </logger>

 <logger name="org.apache.bsf.BSFManager">
	<level value="off"/>
 </logger>

  <logger name="com.nokia.ant.listener.internaldata" additivity="false">
      <level value="DEBUG" />
    <appender-ref ref="CONSOLE"/>
    <appender-ref ref="FILE-listener" />
  </logger>
    <root>
        <priority value="DEBUG"/>
        <appender-ref ref="CONSOLE"/>
    </root>
</log4j:configuration>