Skip to content

Commit

Permalink
Move from writing to file to writing to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Dec 12, 2023
1 parent 84a8752 commit 90b3326
Show file tree
Hide file tree
Showing 15 changed files with 167 additions and 30 deletions.
13 changes: 11 additions & 2 deletions admin/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-admin</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-admin.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,13 +15,22 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<!-- DFP API logging -->
<logger name="com.google.api.ads.dfp.lib.client.DfpServiceClient.soapXmlLogger" level="WARN"/>
<logger name="com.google.api.client.http.HttpTransport" level="OFF"/>
<!-- END -->

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
13 changes: 11 additions & 2 deletions applications/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-applications</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-applications.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,17 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
14 changes: 12 additions & 2 deletions archive/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-archive</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-archive.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,18 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>


</configuration>
13 changes: 11 additions & 2 deletions article/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-article</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-article.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,17 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
13 changes: 11 additions & 2 deletions commercial/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-commercial</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-commercial.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,17 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
14 changes: 12 additions & 2 deletions common/test/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-common</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-test.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,18 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>


<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
13 changes: 11 additions & 2 deletions dev-build/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-dev-build</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-dev-build.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,12 +15,21 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<!-- DFP API logging -->
<logger name="com.google.api.ads.dfp.lib.client.DfpServiceClient.soapXmlLogger" level="OFF"/>
<logger name="com.google.api.client.http.HttpTransport" level="OFF"/>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
13 changes: 11 additions & 2 deletions discussion/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-discussion</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-discussion.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,17 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
13 changes: 11 additions & 2 deletions facia-press/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-facia-press</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-facia-press.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,17 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
13 changes: 11 additions & 2 deletions facia/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-facia</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-facia.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,17 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
13 changes: 11 additions & 2 deletions identity/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-identity</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-identity.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,11 +15,20 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<logger name="exactTarget" level="DEBUG" />
<logger name="org.apache.http.wire" level="WARN" />
<logger name="org.apache.http.headers" level="WARN" />

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>
</configuration>
13 changes: 11 additions & 2 deletions onward/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-onward</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-onward.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,17 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
13 changes: 11 additions & 2 deletions preview/conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<contextName>frontend-preview</contextName>

<appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logs/frontend-preview.log</file>

<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
Expand All @@ -15,8 +15,17 @@
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="STDOUT" />
</appender>

<root level="INFO">
<appender-ref ref="LOGFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
<appender-ref ref="FILE" />
</root>

</configuration>
Loading

0 comments on commit 90b3326

Please sign in to comment.