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


<!--
  | For more configuration information and examples see the Jakarta Log4j
  | website: http://jakarta.apache.org/log4j
 -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">


    <!-- A console appender for spitting other level messages to
       console.  This can be enabled/disconnected via the logger
       sections below.
    -->
    <appender name="Console_Appender" class="org.apache.log4j.ConsoleAppender">
        <param name="Target" value="System.out"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-5p %d{yyyy-MM-dd HH:mm:ss.SSS} -%m%n"/>
            <!-- The default pattern: Date Priority [Category] Messagen -->
            <!-- <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> -->
            <!-- <param name="ConversionPattern" value="%-5p %d{dd-MM HH:mm:ss,SSS} -%m%n"/> -->
            <!-- <param name="ConversionPattern" value="_______________ %d{DATE} %-5p %c %t _______________%n%m%n"/>-->
        </layout>
    </appender>

    <appender name="File_Appender" class="org.apache.log4j.RollingFileAppender">
        <!-- <param name="Threshold" value="error"/> -->
        <param name="File" value="Planner.log"/>
        <param name="Append" value="true"/>
        <param name="MaxFileSize" value="500KB"/>
        <param name="MaxBackupIndex" value="1"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%-5p %d{yyyy-MM-dd HH:mm:ss.SSS} -%m%n"/>
            <!-- The default pattern: Date Priority [Category] Messagen -->
            <!-- <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> -->
            <!-- <param name="ConversionPattern" value="%-5p %d{dd-MM HH:mm:ss,SSS} -%m%n"/> -->
            <!-- <param name="ConversionPattern" value="_______________ %d{DATE} %-5p %c %t _______________%n%m%n"/>-->
        </layout>

    </appender>

    <logger name="org.archive.io">
        <level value="error"/>
        <appender-ref ref="Console_Appender"/>
    </logger>

    <logger name="skillplanner">
        <level value="error"/>
        <appender-ref ref="Console_Appender"/>
        <appender-ref ref="File_Appender"/>
    </logger>

    <root>
        <priority value="error"/>
        <appender-ref ref="Console_Appender"/>
        <appender-ref ref="File_Appender"/>
    </root>

</log4j:configuration>