|
|
|
@ -33,8 +33,6 @@
|
|
|
|
|
</encoder>
|
|
|
|
|
</appender>
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
<!-- console logging Appender defined -->
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
<!-- file logging Appender defined -->
|
|
|
|
@ -54,13 +52,7 @@
|
|
|
|
|
<pattern>${FILE_LOG_PATTERN}</pattern>
|
|
|
|
|
<charset>${FILE_LOG_CHARSET}</charset>
|
|
|
|
|
</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">
|
|
|
|
|
<fileNamePattern>${LOG_PATH}/backup/${LOG_FILE}_%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern>
|
|
|
|
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
|
|
@ -68,14 +60,6 @@
|
|
|
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
|
|
|
|
<maxHistory>50</maxHistory>
|
|
|
|
|
</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>
|
|
|
|
|
|
|
|
|
|
<!-- async appender defined -->
|
|
|
|
@ -98,15 +82,22 @@
|
|
|
|
|
</filter>
|
|
|
|
|
</appender>
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
<!-- file logging Appender defined -->
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
<appender name="LogstashAppender" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
|
|
|
|
|
<remoteHost>127.0.0.1</remoteHost>
|
|
|
|
|
<port>5000</port>
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
<!-- logging mask defined -->
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
<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>
|
|
|
|
|
-->
|
|
|
|
|
<!-- ============================================================================= -->
|
|
|
|
|
|
|
|
|
|
<!-- ************************************************************************* -->
|
|
|
|
|
<!-- SQL log : root appender로 로그 전파 - additivity="true" -->
|
|
|
|
|