|
@@ -0,0 +1,113 @@
|
|
|
+<?xml version="1.0"?>
|
|
|
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
|
|
|
+<!--
|
|
|
+/**
|
|
|
+ * 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 supports_final="false">
|
|
|
+
|
|
|
+ <property>
|
|
|
+ <name>content</name>
|
|
|
+ <description>Custom worker.xml</description>
|
|
|
+ <value>
|
|
|
+ <![CDATA[
|
|
|
+<!--
|
|
|
+ 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 monitorInterval="60">
|
|
|
+<properties>
|
|
|
+ <property name="pattern">%d{yyyy-MM-dd HH:mm:ss.SSS} %c{1.} [%p] %msg%n</property>
|
|
|
+ <property name="patternNoTime">%msg%n</property>
|
|
|
+</properties>
|
|
|
+<appenders>
|
|
|
+ <RollingFile name="A1"
|
|
|
+ fileName="${sys:storm.log.dir}/${sys:logfile.name}"
|
|
|
+ filePattern="${sys:storm.log.dir}/${sys:logfile.name}.%i.gz">
|
|
|
+ <PatternLayout>
|
|
|
+ <pattern>${pattern}</pattern>
|
|
|
+ </PatternLayout>
|
|
|
+ <Policies>
|
|
|
+ <SizeBasedTriggeringPolicy size="100 MB"/> <!-- Or every 100 MB -->
|
|
|
+ </Policies>
|
|
|
+ <DefaultRolloverStrategy max="9"/>
|
|
|
+ </RollingFile>
|
|
|
+ <RollingFile name="STDOUT"
|
|
|
+ fileName="${sys:storm.log.dir}/${sys:logfile.name}.out"
|
|
|
+ filePattern="${sys:storm.log.dir}/${sys:logfile.name}.out.%i.gz">
|
|
|
+ <PatternLayout>
|
|
|
+ <pattern>${patternNoTime}</pattern>
|
|
|
+ </PatternLayout>
|
|
|
+ <Policies>
|
|
|
+ <SizeBasedTriggeringPolicy size="100 MB"/> <!-- Or every 100 MB -->
|
|
|
+ </Policies>
|
|
|
+ <DefaultRolloverStrategy max="4"/>
|
|
|
+ </RollingFile>
|
|
|
+ <RollingFile name="STDERR"
|
|
|
+ fileName="${sys:storm.log.dir}/${sys:logfile.name}.err"
|
|
|
+ filePattern="${sys:storm.log.dir}/${sys:logfile.name}.err.%i.gz">
|
|
|
+ <PatternLayout>
|
|
|
+ <pattern>${patternNoTime}</pattern>
|
|
|
+ </PatternLayout>
|
|
|
+ <Policies>
|
|
|
+ <SizeBasedTriggeringPolicy size="100 MB"/> <!-- Or every 100 MB -->
|
|
|
+ </Policies>
|
|
|
+ <DefaultRolloverStrategy max="4"/>
|
|
|
+ </RollingFile>
|
|
|
+ <Syslog name="syslog" format="RFC5424" host="localhost" port="514"
|
|
|
+ protocol="UDP" appName="[${sys:storm.id}:${sys:worker.port}]" mdcId="mdc" includeMDC="true"
|
|
|
+ facility="LOCAL5" enterpriseNumber="18060" newLine="true" exceptionPattern="%rEx{full}"
|
|
|
+ messageId="[${sys:user.name}:${sys:logging.sensitivity}]" id="storm"/>
|
|
|
+</appenders>
|
|
|
+<loggers>
|
|
|
+ <root level="info"> <!-- We log everything -->
|
|
|
+ <appender-ref ref="A1"/>
|
|
|
+ <appender-ref ref="syslog"/>
|
|
|
+ </root>
|
|
|
+ <Logger name="STDERR" level="INFO">
|
|
|
+ <appender-ref ref="STDERR"/>
|
|
|
+ <appender-ref ref="syslog"/>
|
|
|
+ </Logger>
|
|
|
+ <Logger name="STDOUT" level="INFO">
|
|
|
+ <appender-ref ref="STDOUT"/>
|
|
|
+ <appender-ref ref="syslog"/>
|
|
|
+ </Logger>
|
|
|
+</loggers>
|
|
|
+</configuration>
|
|
|
+ ]]>
|
|
|
+ </value>
|
|
|
+ <value-attributes>
|
|
|
+ <show-property-name>false</show-property-name>
|
|
|
+ </value-attributes>
|
|
|
+ </property>
|
|
|
+
|
|
|
+</configuration>
|