-
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6958 from jhipster/logback-enhancements
Logback enhancements
- Loading branch information
Showing
3 changed files
with
23 additions
and
34 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
8 changes: 7 additions & 1 deletion
8
src/main/resources/generator/server/springboot/core/test/logback.xml.mustache
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,12 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!DOCTYPE configuration> | ||
<configuration scan="true"> | ||
<include resource="org/springframework/boot/logging/logback/base.xml" /> | ||
<springProperty name="log.level" source="logging.level.root" defaultValue="INFO" /> | ||
<include resource="org/springframework/boot/logging/logback/defaults.xml" /> | ||
<include resource="org/springframework/boot/logging/logback/console-appender.xml" /> | ||
|
||
<logger name="{{packageName}}" level="OFF" /> | ||
|
||
<logger name="ch.qos.logback" level="WARN" /> | ||
<logger name="com.sun" level="WARN" /> | ||
<logger name="org.springframework" level="WARN" /> | ||
<!-- jhipster-needle-logback-add-log --> | ||
|
||
<root level="${log.level}"> | ||
<appender-ref ref="CONSOLE" /> | ||
</root> | ||
</configuration> |
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