Log Setting¶
Summary¶
Log setting for intra-mart Accel Kaiden! is made here.Please refer to the document below for the details about the setting method.
Module intra-mart Accel Kaiden! Platform Module Setting Location WEB-INF/conf/log/kaiden_logger.xml BaseSettings.xml
<included> <appender name="KAIDEN_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${im.log}/kaiden/kaiden.log</file> <append>true</append> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${im.log}/kaiden/kaiden%i.log</fileNamePattern> <minIndex>1</minIndex> <maxIndex>5</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>10MB</maxFileSize> </triggeringPolicy> <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder"> <layout class="jp.co.intra_mart.common.platform.log.layout.OutputStackTracePatternLayout"> <pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}] %-5level %logger{255} %X{log.id} - %msg%n</pattern> <enableOutputStackTrace>true</enableOutputStackTrace> <stackTraceDir>${im.log}/platform/exception/</stackTraceDir> <stackTraceFilename>'exception_'yyyy-MM-dd_HH-mm-ss'_%logId.kaiden.log'</stackTraceFilename> </layout> <immediateFlush>true</immediateFlush> </encoder> </appender> <logger name="KAIDEN_LOG" additivity="false"> <level value="info" /> <appender-ref ref="KAIDEN_LOG_FILE" /> <appender-ref ref="STDOUT" /> </logger> </included>
Reference¶
Output Setting¶
Log Level (Initial Value) info Output Destination (Initial Value) ConsoleFile - ${im.log}/kaiden/kaiden.logNote
The value of ${im.log} will be made the setting value of log directory in server context setting.