Last active
January 8, 2022 02:41
-
-
Save Linkit123/431003bf021c98f0ade8453f6fae4953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<property name="LOG_DIR" value="/var/logs/demo/distributed-tracing/handmade" /> | |
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | |
<layout class="ch.qos.logback.classic.PatternLayout"> | |
<Pattern> | |
%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{15} - %msg%n | |
</Pattern> | |
</layout> | |
</appender> | |
<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | |
<file>${LOG_DIR}/name-generator-logger.log</file> | |
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | |
<pattern>%date %level [%file : %line] %msg%n</pattern> | |
</encoder> | |
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | |
<!-- rollover daily --> | |
<fileNamePattern>${LOG_DIR}/archived/name-generator-logger-%d{yyyy-MM-dd}.%i.zip</fileNamePattern> | |
<timeBasedFileNamingAndTriggeringPolicy | |
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | |
<maxFileSize>50MB</maxFileSize> | |
</timeBasedFileNamingAndTriggeringPolicy> | |
</rollingPolicy> | |
</appender> | |
<root level="INFO"> | |
<appender-ref ref="CONSOLE"/> | |
<appender-ref ref="LOGFILE"/> | |
</root> | |
<logger name="com.vnpay" level="info"/> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment