-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #000 fix: Fixed relations filters and log4j for publish pipeline
- Loading branch information
Pradyumna Nagendra
committed
Sep 19, 2019
1 parent
311b513
commit 756adbc
Showing
2 changed files
with
68 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 66 additions & 14 deletions
80
platform-jobs/samza/publish-pipeline/src/main/resources/log4j.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | ||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | ||
<appender name="jmx" class="org.apache.samza.logging.log4j.JmxAppender" /> | ||
<appender name="jmx" class="org.apache.samza.logging.log4j.JmxAppender"/> | ||
|
||
<appender name="RollingAppender" class="org.apache.log4j.RollingFileAppender"> | ||
<param name="File" value="${samza.log.dir}/${samza.container.name}.log" /> | ||
<param name="append" value="true" /> | ||
<param name="maxFileSize" value="100MB" /> | ||
<param name="maxBackupIndex" value="5" /> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n" /> | ||
</layout> | ||
<param name="File" value="${samza.log.dir}/${samza.container.name}.log"/> | ||
<param name="append" value="true"/> | ||
<param name="maxFileSize" value="100MB"/> | ||
<param name="maxBackupIndex" value="5"/> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n"/> | ||
</layout> | ||
</appender> | ||
<root> | ||
<priority value="info" /> | ||
<appender-ref ref="RollingAppender"/> | ||
<appender-ref ref="jmx" /> | ||
</root> | ||
<appender name="DefaultLogAppender" class="org.apache.log4j.RollingFileAppender"> | ||
<param name="File" value="${samza.log.dir}/${samza.container.name}_learning_service_mw.log"/> | ||
<param name="append" value="true"/> | ||
<param name="maxFileSize" value="100MB"/> | ||
<param name="maxBackupIndex" value="5"/> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n"/> | ||
</layout> | ||
</appender> | ||
<appender name="PerfLogAppender" class="org.apache.log4j.RollingFileAppender"> | ||
<param name="File" value="${samza.log.dir}/${samza.container.name}_learning_perf_mw.log"/> | ||
<param name="append" value="true"/> | ||
<param name="maxFileSize" value="100MB"/> | ||
<param name="maxBackupIndex" value="5"/> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n"/> | ||
</layout> | ||
</appender> | ||
<appender name="TelemetryEventAppender" class="org.apache.log4j.RollingFileAppender"> | ||
<param name="File" value="${samza.log.dir}/${samza.container.name}_learning_telemetry_event_mw.log"/> | ||
<param name="append" value="true"/> | ||
<param name="maxFileSize" value="100MB"/> | ||
<param name="maxBackupIndex" value="5"/> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n"/> | ||
</layout> | ||
</appender> | ||
<appender name="StartupAppender" class="org.apache.log4j.RollingFileAppender"> | ||
<param name="File" value="${samza.log.dir}/${samza.container.name}-startup.log" /> | ||
<param name="MaxFileSize" value="256MB" /> | ||
<param name="MaxBackupIndex" value="1" /> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} [%p] %m%n" /> | ||
</layout> | ||
</appender> | ||
<logger name="STARTUP_LOGGER" additivity="false"> | ||
<level value="info" /> | ||
<appender-ref ref="StartupAppender"/> | ||
</logger> | ||
<root> | ||
<priority value="info"/> | ||
<appender-ref ref="RollingAppender"/> | ||
<appender-ref ref="jmx"/> | ||
</root> | ||
<logger name="DefaultPlatformLogger"> | ||
<level value="info" /> | ||
<appender-ref ref="DefaultLogAppender"/> | ||
</logger> | ||
<logger name="TelemetryEventLogger"> | ||
<level value="info" /> | ||
<appender-ref ref="TelemetryEventAppender"/> | ||
</logger> | ||
<logger name="PerformanceTestLogger"> | ||
<level value="info" /> | ||
<appender-ref ref="PerfLogAppender"/> | ||
</logger> | ||
|
||
</log4j:configuration> |