| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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> |
| <property name="LOG_HOME" value="/Users/wuchong/logs/jstorm" /> |
| |
| <appender name="PROJECT" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| <file>${LOG_HOME}/jstorm.ui.log</file> |
| <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| <fileNamePattern>${LOG_HOME}/jstorm.ui.log.%d{yyyy-MM-dd}</fileNamePattern> |
| <maxHistory>7</maxHistory> |
| </rollingPolicy> |
| <encoder> |
| <pattern>%d [%thread] %-5level %logger{10} - %msg%n%rEx</pattern> |
| <charset>UTF-8</charset> |
| </encoder> |
| </appender> |
| <appender name="APACHE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| <file>${LOG_HOME}/jstorm.apache.log</file> |
| <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| <fileNamePattern>${LOG_HOME}/jstorm.apache.log.%d{yyyy-MM-dd}</fileNamePattern> |
| <maxHistory>7</maxHistory> |
| </rollingPolicy> |
| <encoder> |
| <pattern>%d [%thread] %-5level %logger{10} - %X{requestURIWithQueryString} - %msg%n</pattern> |
| <charset>UTF-8</charset> |
| </encoder> |
| </appender> |
| |
| |
| <logger name="com.alibaba.jstorm.ui" additivity="false" level="INFO"> |
| <appender-ref ref="PROJECT"/> |
| </logger> |
| <logger name="STDERR" additivity="false" level="ERROR"> |
| <appender-ref ref="APACHE"/> |
| </logger> |
| <logger name="STDOUT" additivity="false" level="ERROR"> |
| <appender-ref ref="APACHE"/> |
| </logger> |
| |
| <root level="INFO"> |
| <appender-ref ref="PROJECT"/> |
| </root> |
| </configuration> |