Skip to content

Commit

Permalink
use standard logback.xml (eugenp#1666)
Browse files Browse the repository at this point in the history
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml
  • Loading branch information
Doha2012 authored and pivovarit committed Apr 17, 2017
1 parent cdab6ac commit 7525544
Show file tree
Hide file tree
Showing 61 changed files with 698 additions and 593 deletions.
9 changes: 6 additions & 3 deletions apache-fop/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<!-- <logger name="org.springframework" level="WARN" /> -->
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>

</configuration>
30 changes: 13 additions & 17 deletions apache-velocity/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<Pattern>
%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
</Pattern>
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

</layout>
</appender>

<logger name="com.baeldung.apache.velocity.service" level="debug"
additivity="false">
<appender-ref ref="STDOUT" />
</logger>

<root level="error">
<appender-ref ref="STDOUT" />
</root>
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
25 changes: 13 additions & 12 deletions aspectj/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg %n</pattern>
</layout>
</appender>
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<logger name="com.baeldung.hazelcast" level="INFO" additivity="false">
<appender-ref ref="STDOUT" />
</logger>
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="DEBUG">
<appender-ref ref="STDOUT" />
</root>

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
11 changes: 7 additions & 4 deletions core-java-9/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<!-- <logger name="org.springframework" level="WARN" /> -->
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT"/>
<appender-ref ref="STDOUT" />
</root>

</configuration>
9 changes: 6 additions & 3 deletions core-java/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<!-- <logger name="org.springframework" level="WARN" /> -->
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>

</configuration>
8 changes: 5 additions & 3 deletions couchbase-sdk/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
Expand All @@ -8,10 +8,12 @@
</appender>

<logger name="org.springframework" level="WARN" />
<logger name="com.baeldung" level="DEBUG" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>

</configuration>
8 changes: 5 additions & 3 deletions couchbase-sdk/src/test/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
Expand All @@ -8,10 +8,12 @@
</appender>

<logger name="org.springframework" level="WARN" />
<logger name="com.baeldung" level="DEBUG" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>

</configuration>
29 changes: 14 additions & 15 deletions gson/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
29 changes: 14 additions & 15 deletions guava/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
29 changes: 14 additions & 15 deletions handling-spring-static-resources/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
25 changes: 13 additions & 12 deletions hazelcast/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg %n</pattern>
</layout>
</appender>
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<logger name="com.baeldung.hazelcast" level="INFO" additivity="false">
<appender-ref ref="STDOUT" />
</logger>
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="DEBUG">
<appender-ref ref="STDOUT" />
</root>

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
10 changes: 6 additions & 4 deletions httpclient/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<logger name="org.apache.http" level="DEBUG" />
<logger name="org.apache.http.wire" level="INFO" />
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>

</configuration>
29 changes: 14 additions & 15 deletions jackson/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
</pattern>
</encoder>
</appender>
<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<logger name="org.springframework" level="WARN" />
<logger name="org.springframework.transaction" level="WARN" />

<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
<!-- in order to debug some marshalling issues, this needs to be TRACE -->
<logger name="org.springframework.web.servlet.mvc" level="WARN" />

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
Loading

0 comments on commit 7525544

Please sign in to comment.