HBASE-25716 The configured loggers in log4j2.xml will always be created (#3111)
Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
parent
ad06aa2082
commit
8e08952499
|
@ -27,7 +27,8 @@
|
||||||
<!-- Daily Rolling File Appender -->
|
<!-- Daily Rolling File Appender -->
|
||||||
<RollingFile name="DRFA"
|
<RollingFile name="DRFA"
|
||||||
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
||||||
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%d{yyyy-MM-dd}">
|
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%d{yyyy-MM-dd}"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<TimeBasedTriggeringPolicy interval="1" />
|
<TimeBasedTriggeringPolicy interval="1" />
|
||||||
|
@ -37,7 +38,8 @@
|
||||||
<!-- Rolling File Appender -->
|
<!-- Rolling File Appender -->
|
||||||
<RollingFile name="RFA"
|
<RollingFile name="RFA"
|
||||||
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
||||||
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%i">
|
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%i"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<SizeBasedTriggeringPolicy size="256MB" />
|
<SizeBasedTriggeringPolicy size="256MB" />
|
||||||
|
@ -47,7 +49,8 @@
|
||||||
<!-- Security audit appender -->
|
<!-- Security audit appender -->
|
||||||
<RollingFile name="RFAS"
|
<RollingFile name="RFAS"
|
||||||
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}"
|
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}"
|
||||||
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}.%i">
|
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}.%i"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<SizeBasedTriggeringPolicy size="256MB" />
|
<SizeBasedTriggeringPolicy size="256MB" />
|
||||||
|
@ -58,7 +61,8 @@
|
||||||
Http Access Log RFA, uncomment this if you want an http access.log
|
Http Access Log RFA, uncomment this if you want an http access.log
|
||||||
<RollingFile name="AccessRFA"
|
<RollingFile name="AccessRFA"
|
||||||
fileName="/var/log/hbase/access.log"
|
fileName="/var/log/hbase/access.log"
|
||||||
filePattern="/var/log/hbase/access.log.%i">
|
filePattern="/var/log/hbase/access.log.%i"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%m%n" />
|
<PatternLayout pattern="%m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<SizeBasedTriggeringPolicy size="200MB" />
|
<SizeBasedTriggeringPolicy size="200MB" />
|
||||||
|
|
|
@ -27,7 +27,8 @@
|
||||||
<!-- Daily Rolling File Appender -->
|
<!-- Daily Rolling File Appender -->
|
||||||
<RollingFile name="DRFA"
|
<RollingFile name="DRFA"
|
||||||
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
||||||
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%d{yyyy-MM-dd}">
|
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%d{yyyy-MM-dd}"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<TimeBasedTriggeringPolicy interval="1" />
|
<TimeBasedTriggeringPolicy interval="1" />
|
||||||
|
@ -37,7 +38,8 @@
|
||||||
<!-- Rolling File Appender -->
|
<!-- Rolling File Appender -->
|
||||||
<RollingFile name="RFA"
|
<RollingFile name="RFA"
|
||||||
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
||||||
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%i">
|
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%i"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<SizeBasedTriggeringPolicy size="256MB" />
|
<SizeBasedTriggeringPolicy size="256MB" />
|
||||||
|
@ -47,23 +49,27 @@
|
||||||
<!-- Security audit appender -->
|
<!-- Security audit appender -->
|
||||||
<RollingFile name="RFAS"
|
<RollingFile name="RFAS"
|
||||||
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}"
|
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}"
|
||||||
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}.%i">
|
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}.%i"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<SizeBasedTriggeringPolicy size="256MB" />
|
<SizeBasedTriggeringPolicy size="256MB" />
|
||||||
</Policies>
|
</Policies>
|
||||||
<DefaultRolloverStrategy max="20" />
|
<DefaultRolloverStrategy max="20" />
|
||||||
</RollingFile>
|
</RollingFile>
|
||||||
<!-- Http Access Log RFA -->
|
<!--
|
||||||
|
Http Access Log RFA, uncomment this if you want an http access.log
|
||||||
<RollingFile name="AccessRFA"
|
<RollingFile name="AccessRFA"
|
||||||
fileName="/var/log/hbase/access.log"
|
fileName="/var/log/hbase/access.log"
|
||||||
filePattern="/var/log/hbase/access.log.%i">
|
filePattern="/var/log/hbase/access.log.%i"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%m%n" />
|
<PatternLayout pattern="%m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<SizeBasedTriggeringPolicy size="200MB" />
|
<SizeBasedTriggeringPolicy size="200MB" />
|
||||||
</Policies>
|
</Policies>
|
||||||
<DefaultRolloverStrategy max="10" />
|
<DefaultRolloverStrategy max="10" />
|
||||||
</RollingFile>
|
</RollingFile>
|
||||||
|
-->
|
||||||
<Null name="NullAppender" />
|
<Null name="NullAppender" />
|
||||||
</Appenders>
|
</Appenders>
|
||||||
<Loggers>
|
<Loggers>
|
||||||
|
|
|
@ -27,7 +27,8 @@
|
||||||
<!-- Daily Rolling File Appender -->
|
<!-- Daily Rolling File Appender -->
|
||||||
<RollingFile name="DRFA"
|
<RollingFile name="DRFA"
|
||||||
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
||||||
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%d{yyyy-MM-dd}">
|
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%d{yyyy-MM-dd}"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<TimeBasedTriggeringPolicy interval="1" />
|
<TimeBasedTriggeringPolicy interval="1" />
|
||||||
|
@ -37,7 +38,8 @@
|
||||||
<!-- Rolling File Appender -->
|
<!-- Rolling File Appender -->
|
||||||
<RollingFile name="RFA"
|
<RollingFile name="RFA"
|
||||||
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}"
|
||||||
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%i">
|
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.log.file:-hbase.log}.%i"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<SizeBasedTriggeringPolicy size="256MB" />
|
<SizeBasedTriggeringPolicy size="256MB" />
|
||||||
|
@ -47,23 +49,27 @@
|
||||||
<!-- Security audit appender -->
|
<!-- Security audit appender -->
|
||||||
<RollingFile name="RFAS"
|
<RollingFile name="RFAS"
|
||||||
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}"
|
fileName="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}"
|
||||||
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}.%i">
|
filePattern="${sys:hbase.log.dir:-.}/${sys:hbase.security.log.file:-SecurityAuth.audit}.%i"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
<PatternLayout pattern="%d{ISO8601} %-5p [%t] %c{2}: %.1000m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<SizeBasedTriggeringPolicy size="256MB" />
|
<SizeBasedTriggeringPolicy size="256MB" />
|
||||||
</Policies>
|
</Policies>
|
||||||
<DefaultRolloverStrategy max="20" />
|
<DefaultRolloverStrategy max="20" />
|
||||||
</RollingFile>
|
</RollingFile>
|
||||||
<!-- Http Access Log RFA -->
|
<!--
|
||||||
|
Http Access Log RFA, uncomment this if you want an http access.log
|
||||||
<RollingFile name="AccessRFA"
|
<RollingFile name="AccessRFA"
|
||||||
fileName="/var/log/hbase/access.log"
|
fileName="/var/log/hbase/access.log"
|
||||||
filePattern="/var/log/hbase/access.log.%i">
|
filePattern="/var/log/hbase/access.log.%i"
|
||||||
|
createOnDemand="true">
|
||||||
<PatternLayout pattern="%m%n" />
|
<PatternLayout pattern="%m%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
<SizeBasedTriggeringPolicy size="200MB" />
|
<SizeBasedTriggeringPolicy size="200MB" />
|
||||||
</Policies>
|
</Policies>
|
||||||
<DefaultRolloverStrategy max="10" />
|
<DefaultRolloverStrategy max="10" />
|
||||||
</RollingFile>
|
</RollingFile>
|
||||||
|
-->
|
||||||
<Null name="NullAppender" />
|
<Null name="NullAppender" />
|
||||||
</Appenders>
|
</Appenders>
|
||||||
<Loggers>
|
<Loggers>
|
||||||
|
|
Loading…
Reference in New Issue