Commit 705cde79 by shuyulong

修改日志文件名配置

parent 6fa68d1d
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
<Configuration status="off" monitorInterval="1800"> <Configuration status="off" monitorInterval="1800">
<properties> <properties>
<property name="LOG_HOME">/home/shuyulong/kafka_forword/logs/</property> <property name="LOG_HOME">/home/shuyulong/kafka_forword/logs</property>
<property name="FILE_NAME">forword</property>
</properties> </properties>
<Appenders> <Appenders>
...@@ -14,8 +13,8 @@ ...@@ -14,8 +13,8 @@
</Console> </Console>
<RollingRandomAccessFile name="running-log" <RollingRandomAccessFile name="running-log"
fileName="${LOG_HOME}/${FILE_NAME}.log" filePattern="${LOG_HOME}/ fileName="${LOG_HOME}/forword.log"
%d{yyyy-MM-dd}.log"> filePattern="${LOG_HOME}/%d{yyyy-MM-dd}.log">
<PatternLayout <PatternLayout
pattern="%d{yyyy-MM-dd HH:mm:ss} %10p (%c:%M) - %m%n"/> pattern="%d{yyyy-MM-dd HH:mm:ss} %10p (%c:%M) - %m%n"/>
<Policies> <Policies>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment