|
|
@ -33,8 +33,6 @@
|
|
|
|
</encoder>
|
|
|
|
</encoder>
|
|
|
|
</appender>
|
|
|
|
</appender>
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
<!-- console logging Appender defined -->
|
|
|
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
<!-- file logging Appender defined -->
|
|
|
|
<!-- file logging Appender defined -->
|
|
|
@ -54,13 +52,7 @@
|
|
|
|
<pattern>${FILE_LOG_PATTERN}</pattern>
|
|
|
|
<pattern>${FILE_LOG_PATTERN}</pattern>
|
|
|
|
<charset>${FILE_LOG_CHARSET}</charset>
|
|
|
|
<charset>${FILE_LOG_CHARSET}</charset>
|
|
|
|
</encoder>
|
|
|
|
</encoder>
|
|
|
|
<!--
|
|
|
|
|
|
|
|
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
|
|
|
|
|
|
|
|
<layout class="kr.xit.core.support.logback.PatternLayoutWithUserContext">
|
|
|
|
|
|
|
|
<param name="Pattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %session %-5level %logger{10} - %user %msg%n" />
|
|
|
|
|
|
|
|
</layout>
|
|
|
|
|
|
|
|
</encoder>
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
|
<fileNamePattern>${LOG_PATH}/backup/${LOG_FILE}_%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
|
|
|
<fileNamePattern>${LOG_PATH}/backup/${LOG_FILE}_%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
|
|
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
@ -68,14 +60,6 @@
|
|
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
|
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
|
|
|
<maxHistory>50</maxHistory>
|
|
|
|
<maxHistory>50</maxHistory>
|
|
|
|
</rollingPolicy>
|
|
|
|
</rollingPolicy>
|
|
|
|
<!--
|
|
|
|
|
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
|
|
|
|
|
|
<fileNamePattern>${LOG_PATH}}/logs/backup/${LOG_FILE}-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
|
|
|
|
|
|
|
<maxFileSize>500MB</maxFileSize>
|
|
|
|
|
|
|
|
<maxHistory>60</maxHistory>
|
|
|
|
|
|
|
|
<totalSizeCap>10GB</totalSizeCap>
|
|
|
|
|
|
|
|
</rollingPolicy>
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
</appender>
|
|
|
|
</appender>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- async appender defined -->
|
|
|
|
<!-- async appender defined -->
|
|
|
@ -98,15 +82,22 @@
|
|
|
|
</filter>
|
|
|
|
</filter>
|
|
|
|
</appender>
|
|
|
|
</appender>
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
<!-- file logging Appender defined -->
|
|
|
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
<appender name="LogstashAppender" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
|
|
|
|
<!-- logging mask defined -->
|
|
|
|
<remoteHost>127.0.0.1</remoteHost>
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
<port>5000</port>
|
|
|
|
<appender name="mask" class="ch.qos.logback.core.ConsoleAppender">
|
|
|
|
|
|
|
|
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
|
|
|
|
|
|
|
|
<layout class="kr.xit.core.support.logback.LogbackMaskingPatternLayout">
|
|
|
|
|
|
|
|
<maskPattern>\"juminId\"\s*:\s*\"(.*?)\"</maskPattern> <!-- SSN JSON pattern -->
|
|
|
|
|
|
|
|
<maskPattern>\"recveJuminno\"\s*:\s*\"(.*?)\"</maskPattern> <!-- SSN JSON pattern -->
|
|
|
|
|
|
|
|
<maskPattern>\"recevAddr\"\s*:\s*\"(.*?)\"</maskPattern> <!-- Address JSON pattern -->
|
|
|
|
|
|
|
|
<maskPattern>\"recevDetailAddr\"\s*:\s*\"(.*?)\"</maskPattern> <!-- Address JSON pattern -->
|
|
|
|
|
|
|
|
<pattern>%-5p [%d{ISO8601,UTC}] [%thread] %c: %m%n%rootException</pattern>
|
|
|
|
|
|
|
|
</layout>
|
|
|
|
|
|
|
|
</encoder>
|
|
|
|
</appender>
|
|
|
|
</appender>
|
|
|
|
-->
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ************************************************************************* -->
|
|
|
|
<!-- ************************************************************************* -->
|
|
|
|
<!-- SQL log : root appender로 로그 전파 - additivity="true" -->
|
|
|
|
<!-- SQL log : root appender로 로그 전파 - additivity="true" -->
|
|
|
|