Appended hostname to log filename. Logging date in ISO8601, GMT

This commit is contained in:
Andrius Dagys 2016-07-25 18:07:50 +01:00
parent e7ff5b8f6f
commit f807e157b6

View File

@ -3,7 +3,7 @@
<Properties> <Properties>
<Property name="log-path">logs</Property> <Property name="log-path">logs</Property>
<Property name="log-name">main</Property> <Property name="log-name">node-${hostName}</Property>
<Property name="archive">${log-path}/archive</Property> <Property name="archive">${log-path}/archive</Property>
</Properties> </Properties>
@ -24,7 +24,7 @@
fileName="${log-path}/${log-name}.log" fileName="${log-path}/${log-name}.log"
filePattern="${archive}/${log-name}.%d{yyyy-MM-dd}-%i.log.gz"> filePattern="${archive}/${log-name}.%d{yyyy-MM-dd}-%i.log.gz">
<PatternLayout pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n"/> <PatternLayout pattern="[%-5level] %d{ISO8601}{GMT+0} [%t] %c{1} - %msg%n"/>
<Policies> <Policies>
<TimeBasedTriggeringPolicy/> <TimeBasedTriggeringPolicy/>