summaryrefslogtreecommitdiffstats
path: root/usecaseui-common/src/main/resources/logback.xml
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2017-10-17 01:09:17 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-17 01:09:17 +0000
commit20f2faf42e9833039a911e53e89f7ca4251352a8 (patch)
tree6a18d3d58cd86032b359d3ecb67e18a74710ab0c /usecaseui-common/src/main/resources/logback.xml
parent905ab8a66e8fa64d54ead6207e52eb3b749fc0db (diff)
parentb7503ec5b347cf30dd5bfbc27dac076fbb6f5418 (diff)
Merge "add msb config"
Diffstat (limited to 'usecaseui-common/src/main/resources/logback.xml')
-rw-r--r--usecaseui-common/src/main/resources/logback.xml117
1 files changed, 117 insertions, 0 deletions
diff --git a/usecaseui-common/src/main/resources/logback.xml b/usecaseui-common/src/main/resources/logback.xml
new file mode 100644
index 00000000..65e61cbd
--- /dev/null
+++ b/usecaseui-common/src/main/resources/logback.xml
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+<configuration debug="false" scan="true" scanPeriod="30 seconds">
+ <property name="projectName" value="openoui"/>
+ <property name="logDir" value="../webapps/openoui/openoui_log"/>
+ <property name="maxHistory" value="30"/>
+ <timestamp key="bySecond" datePattern="yyyyMMdd'T'HHmmss"/>
+
+ <appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>
+ %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <appender name="errorAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>ERROR</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/error/error.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>
+ %d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <appender name="warnAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>WARN</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/warn/warn.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="infoAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>INFO</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/info/info.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="debugAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>DEBUG</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/debug/debug.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="traceAppender" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <filter class="ch.qos.logback.classic.filter.LevelFilter">
+ <level>TRACE</level>
+ <onMatch>ACCEPT</onMatch>
+ <onMismatch>DENY</onMismatch>
+ </filter>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>${logDir}/trace/trace.%d{yyyy-MM}.log</fileNamePattern>
+ <maxHistory>${maxHistory}</maxHistory>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <root>
+ <level value="info"/>
+ <appender-ref ref="consoleAppender"/>
+ <appender-ref ref="errorAppender"/>
+ <appender-ref ref="warnAppender"/>
+ <appender-ref ref="infoAppender"/>
+ <appender-ref ref="debugAppender"/>
+ <appender-ref ref="traceAppender"/>
+ </root>
+</configuration>