All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bw-carddav-tools.5.0.3.source-code.log4j.xml Maven / Gradle / Ivy

There is a newer version: 5.0.6
Show newest version
<?xml version="1.0" encoding="UTF-8"?>

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  Log4j Configuration for testing                                                 -->
<!--                                                                       -->
<!-- ===================================================================== -->

<Configuration>

   <!-- ================================= -->
   <!-- Preserve messages in a local file -->
   <!-- ================================= -->

   <!-- A time/date based rolling appender -->
   <Appenders>
      <RollingFile name="FILE" fileName="${user.home}/logs/carddav.log"
                   filePattern="logs/carddav-%d{yyyy-MM-dd}.log">
         <layout class="org.apache.log4j.PatternLayout">
            <!-- The default pattern: Date Priority [Category] Message\n -->
            <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
         </layout>
         <PatternLayout>
            <Pattern>%d %-5p [%c] %m%n</Pattern>
         </PatternLayout>
         <Policies>
            <TimeBasedTriggeringPolicy />
            <SizeBasedTriggeringPolicy size="250 MB"/>
         </Policies>
      </RollingFile>

      <Console name="CONSOLE" target="SYSTEM_OUT">
         <param name="Threshold" value="DEBUG"/>

         <PatternLayout pattern="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
      </Console>
   </Appenders>

   <Loggers>
      <!-- ================ -->
      <!-- Limit categories -->
      <!-- ================ -->

      <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
      <Logger name="org.apache" level="info"/>

      <Logger name="httpclient.wire.content" level="info"/>

      <!-- ical4j is noisy -->
      <Logger name="net.fortuna.ical4j" level="info"/>

      <!-- caching is noisy too -->
      <Logger name="net.sf.ehcache" level="info"/>

      <!-- Set bedework categories -->
      <Logger name="org.bedework" level="debug"/>

      <Root level ="debug" >
         <AppenderRef ref="FILE"/>
         <AppenderRef ref="CONSOLE"/>
      </Root>
   </Loggers>
</Configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy