CIB webRec technical documentation

Logging

Log4j2 library is used. Config path WEB-INF/classes/log4j2.xml

<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
        <Properties>
               <Property name="defaultFormat">%5p %d{dd.MM.yy HH:mm:ss} [%t] [%c{1}:%L] %m%n</Property>
               <Property name="logDir">${sys:catalina.base}/logs</Property>
        </Properties>
        <Appenders>
               <Console name="console" target="SYSTEM_OUT">
                       <PatternLayout pattern="${defaultFormat}" />
               </Console>
               <File name="webrec" fileName="${logDir}/webrec.${date:yyyy-MM-dd}.log">
                       <PatternLayout pattern="${defaultFormat}" />
               </File>
               <File name="webrec-trace" fileName="${logDir}/webrec-trace.${date:yyyy-MM-dd}.log">
                       <PatternLayout pattern="${defaultFormat}" />
               </File>
        </Appenders>
        <Loggers>
               <Root level="ERROR">
                       <AppenderRef ref="console" />
               </Root>
               <Logger name="de.cib.webrec" level="WARN" additivity="false">
                       <AppenderRef ref="console" />
                       <AppenderRef ref="webrec" />
               </Logger>
               <Logger name="de.cib.webrec.backend" level="INFO" additivity="false">
                       <AppenderRef ref="webrec" />
               </Logger>
        </Loggers>
</Configuration>