Repository: asterixdb Updated Branches: refs/heads/master bc7a081cc -> 8b514a263
[NO ISSUE] Remove tracer log from the xml - user model changes: no - storage format changes: no - interface changes: no Details: Remove the tracer log from the xml. Change-Id: I694dd1a5d3dc897cab35d4ff9e27596e28117700 Reviewed-on: https://asterix-gerrit.ics.uci.edu/3110 Sonar-Qube: Jenkins <[email protected]> Integration-Tests: Jenkins <[email protected]> Tested-by: Jenkins <[email protected]> Contrib: Jenkins <[email protected]> Reviewed-by: Murtadha Hubail <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/8b514a26 Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/8b514a26 Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/8b514a26 Branch: refs/heads/master Commit: 8b514a263092891bf0b51b4363b00e73d57596fb Parents: bc7a081 Author: Ali Alsuliman <[email protected]> Authored: Wed Jan 9 15:42:58 2019 -0800 Committer: Ali Alsuliman <[email protected]> Committed: Thu Jan 10 09:03:07 2019 -0800 ---------------------------------------------------------------------- asterixdb/asterix-app/src/main/resources/log4j2.xml | 4 ---- .../hyracks/control/cc/CCLogConfigurationFactory.java | 9 +++++++++ 2 files changed, 9 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/asterixdb/blob/8b514a26/asterixdb/asterix-app/src/main/resources/log4j2.xml ---------------------------------------------------------------------- diff --git a/asterixdb/asterix-app/src/main/resources/log4j2.xml b/asterixdb/asterix-app/src/main/resources/log4j2.xml index e54a424..97bc0a1 100644 --- a/asterixdb/asterix-app/src/main/resources/log4j2.xml +++ b/asterixdb/asterix-app/src/main/resources/log4j2.xml @@ -31,9 +31,6 @@ <Console name="TracerLog" target="SYSTEM_OUT"> <PatternLayout pattern="%m%n"/> </Console> - <File name="TracerLogFile" fileName="target/tracer.log"> - <PatternLayout pattern="%m,%n" header="[" footer="]"/> - </File> </Appenders> <Loggers> <Root level="WARN"> @@ -45,7 +42,6 @@ </Logger> <Logger name="org.apache.hyracks.util.trace.Tracer.Traces" level="TRACER" additivity="false"> <AppenderRef ref="TracerLog"/> - <AppenderRef ref="TracerLogFile"/> </Logger> </Loggers> </Configuration> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/asterixdb/blob/8b514a26/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/CCLogConfigurationFactory.java ---------------------------------------------------------------------- diff --git a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/CCLogConfigurationFactory.java b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/CCLogConfigurationFactory.java index 22dea9f..98e0245 100644 --- a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/CCLogConfigurationFactory.java +++ b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/CCLogConfigurationFactory.java @@ -68,6 +68,15 @@ public class CCLogConfigurationFactory extends ConfigurationFactory { builder.add(builder.newLogger("org.apache.hyracks.http.server.CLFLogger", Level.forName("ACCESS", 550)) .add(builder.newAppenderRef("access")).addAttribute("additivity", false)); + LayoutComponentBuilder traceLayout = builder.newLayout("PatternLayout").addAttribute("pattern", "%m,%n") + .addAttribute("header", "[").addAttribute("footer", "]"); + AppenderComponentBuilder traceRoll = + builder.newAppender("trace", "RollingFile").addAttribute("fileName", logDir + "trace-cc.log") + .addAttribute("filePattern", logDir + "trace-cc-%d{MM-dd-yy-ss}.log.gz").add(traceLayout) + .addComponent(triggeringPolicy); + builder.add(traceRoll); + builder.add(builder.newLogger("org.apache.hyracks.util.trace.Tracer.Traces", Level.forName("TRACER", 570)) + .add(builder.newAppenderRef("trace")).addAttribute("additivity", false)); return builder.build(); }
