<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>

  <appender name="CONSOLE-DEBUG" class="org.apache.log4j.ConsoleAppender">
    <param name="target" value="System.out"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
    </layout>
    <filter class="org.apache.log4j.varia.LevelRangeFilter">
      <param name="LevelMin" value="ALL"/>
      <param name="LevelMax" value="INFO"/>
    </filter>
  </appender>

  <appender name="CONSOLE-WARN" class="org.apache.log4j.ConsoleAppender">
    <param name="target" value="System.err"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
    </layout>
    <filter class="org.apache.log4j.varia.LevelRangeFilter">
      <param name="LevelMin" value="WARN"/>
    </filter>
  </appender>

  <appender name="GENERAL-LOG-FILE" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="file" value="./logs/cert-manager.log"/>
    <param name="append" value="true"/>
    <param name="DatePattern" value="'.'yyyy-MM-dd"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}]:%M:%L - %m%n"/>
    </layout>
  </appender>

  <!--appender name="HTTP-LOG-FILE" class="org.apache.log4j.DailyRollingFileAppender">
    <param name="file" value="./logs/http/apache.log"/>
    <param name="append" value="true"/>
    <param name="DatePattern" value="'.'yyyy-MM-dd"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}]:%M:%L - %m%n"/>
    </layout>
  </appender>

  <category name="org.apache.http" additivity="false">
    <appender-ref ref="HTTP-LOG-FILE"/>
  </category-->

  
  <category name="org.hibernate.SQL">
    <priority value="DEBUG"/>
  </category>

  <root>
    <priority value="DEBIG"/>
    <appender-ref ref="CONSOLE-WARN"/>
    <appender-ref ref="CONSOLE-DEBUG"/>
    <appender-ref ref="GENERAL-LOG-FILE"/>
    
  </root>
</log4j:configuration>
