prod110/prod110-back-b/authsec_springboot/backend/target/classes/logback.xml

108 lines
4.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd'T'HH:mm:ss.SSSZ} %p %m%n " />
<property name="APP_LOG_ROOT" value="logs"/>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${LOG_PATTERN}</pattern>
</encoder>
</appender>
<appender name="applicationLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${APP_LOG_ROOT}/ExceptionLogs/Error.log</file>
<encoder>
<pattern>${LOG_PATTERN}</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${APP_LOG_ROOT}/ExceptionLogs/Error-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>10</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>10MB</maxFileSize>
</triggeringPolicy>
</appender>
<!-- <appender name="aopLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> -->
<!-- <file>${APP_LOG_ROOT}/application-aop.log</file> -->
<!-- <encoder> -->
<!-- <pattern>${LOG_PATTERN}</pattern> -->
<!-- </encoder> -->
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> -->
<!-- <fileNamePattern>${APP_LOG_ROOT}/application-aop-%i.log</fileNamePattern> -->
<!-- <minIndex>1</minIndex> -->
<!-- <maxIndex>10</maxIndex> -->
<!-- </rollingPolicy> -->
<!-- <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> -->
<!-- <maxFileSize>10MB</maxFileSize> -->
<!-- </triggeringPolicy> -->
<!-- </appender> -->
<!-- <appender name="springLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> -->
<!-- <file>${APP_LOG_ROOT}/spring-framework.log</file> -->
<!-- <encoder> -->
<!-- <pattern>${LOG_PATTERN}</pattern> -->
<!-- </encoder> -->
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> -->
<!-- <fileNamePattern>${APP_LOG_ROOT}/spring-framework-%i.log</fileNamePattern> -->
<!-- <minIndex>1</minIndex> -->
<!-- <maxIndex>10</maxIndex> -->
<!-- </rollingPolicy> -->
<!-- <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> -->
<!-- <maxFileSize>10MB</maxFileSize> -->
<!-- </triggeringPolicy> -->
<!-- </appender> -->
<!-- <appender name="hibernateLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> -->
<!-- <file>${APP_LOG_ROOT}/database.log</file> -->
<!-- <encoder> -->
<!-- <pattern>${LOG_PATTERN}</pattern> -->
<!-- </encoder> -->
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> -->
<!-- <fileNamePattern>${APP_LOG_ROOT}/database-%i.log</fileNamePattern> -->
<!-- <minIndex>1</minIndex> -->
<!-- <maxIndex>10</maxIndex> -->
<!-- </rollingPolicy> -->
<!-- <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> -->
<!-- <maxFileSize>10MB</maxFileSize> -->
<!-- </triggeringPolicy> -->
<!-- </appender> -->
<!-- <appender name="console"
class="ch.qos.logback.core.ConsoleAppender">
<encoder name="enc"
class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout
class="com.realnet.logging1.PatternLayoutWithUserContext">
<param name="Pattern"
value="%d{HH:mm:ss.SSS} %-5level %logger{10} [%user %session] - %msg%n" />
</layout>
</encoder>
</appender> -->
<logger name="com.realnet" level="ERROR">
<appender-ref ref="applicationLog" />
</logger>
<!-- <logger name="com.realnet" level="INFO"> -->
<!-- <appender-ref ref="aopLog" /> -->
<!-- <appender-ref ref="console" /> -->
<!-- </logger> -->
<!-- <logger name="org.springframework" level="INFO"> -->
<!-- <appender-ref ref="springLog" /> -->
<!-- <appender-ref ref="console" /> -->
<!-- </logger> -->
<!-- <logger name="org.hibernate" level="ERROR"> -->
<!-- <appender-ref ref="hibernateLog" /> -->
<!-- <appender-ref ref="console" /> -->
<!-- </logger> -->
<root level="info">
<appender-ref ref="console" />
</root>
</configuration>