You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flume.apache.org by rg...@apache.org on 2017/11/24 19:59:57 UTC

[07/11] flume git commit: FLUME-2050 - modify pattern layout so NDC is ignored if it has no data

FLUME-2050 - modify pattern layout so NDC is ignored if it has no data


Project: http://git-wip-us.apache.org/repos/asf/flume/repo
Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/4bb5e88e
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/4bb5e88e
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/4bb5e88e

Branch: refs/heads/trunk
Commit: 4bb5e88eccf7e9676eb527bd0fa7ecfc9bce50f2
Parents: 4a07fbf
Author: Ralph Goers <rg...@apache.org>
Authored: Tue Nov 7 22:31:20 2017 -0700
Committer: Ralph Goers <rg...@apache.org>
Committed: Tue Nov 7 22:31:20 2017 -0700

----------------------------------------------------------------------
 conf/log4j2.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flume/blob/4bb5e88e/conf/log4j2.xml
----------------------------------------------------------------------
diff --git a/conf/log4j2.xml b/conf/log4j2.xml
index 5bc76cb..d8df4c4 100644
--- a/conf/log4j2.xml
+++ b/conf/log4j2.xml
@@ -25,7 +25,7 @@
       <PatternLayout pattern="%d (%t) [%p - %l] %m%n" />
     </Console>
     <RollingFile name="LogFile" fileName="${LOG_DIR}/flume.log" filePattern="${LOG_DIR}/archive/flume.log.%d{yyyyMMdd}-%i">
-      <PatternLayout pattern="%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t] (%C.%M:%L) %x - %m%n" />
+      <PatternLayout pattern="%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t] (%C.%M:%L) %equals{%x }{[] }{}- %m%n" />
       <Policies>
         <!-- Roll every night at midnight or when the file reaches 100MB -->
         <SizeBasedTriggeringPolicy size="100 MB"/>