This repository has been archived by the owner on Jul 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ollie Freeman
committed
Jul 10, 2017
1 parent
3978f99
commit 7338e70
Showing
10 changed files
with
114 additions
and
99 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
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
Binary file not shown.
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,6 +1,6 @@ | ||
#Mon Dec 05 15:46:31 GMT 2016 | ||
#Mon Jul 10 17:41:47 BST 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\:https://services.gradle.org/distributions/gradle-2.11-bin.zip | ||
distributionUrl=https\:https://services.gradle.org/distributions/gradle-3.4.1-bin.zip |
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
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
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
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
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
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,30 +1,39 @@ | ||
import grails.util.BuildSettings | ||
import grails.util.Environment | ||
import org.springframework.boot.logging.logback.ColorConverter | ||
import org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter | ||
|
||
import java.nio.charset.Charset | ||
|
||
conversionRule 'clr', ColorConverter | ||
conversionRule 'wex', WhitespaceThrowableProxyConverter | ||
|
||
// See https://logback.qos.ch/manual/groovy.html for details on configuration | ||
appender('STDOUT', ConsoleAppender) { | ||
encoder(PatternLayoutEncoder) { | ||
pattern = "%level %logger - %msg%n" | ||
charset = Charset.forName('UTF-8') | ||
|
||
pattern = | ||
'%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} ' + // Date | ||
'%clr(%5p) ' + // Log level | ||
'%clr(---){faint} %clr([%15.15t]){faint} ' + // Thread | ||
'%clr(%-40.40logger{39}){cyan} %clr(:){faint} ' + // Logger | ||
'%m%n%wex' // Message | ||
} | ||
} | ||
|
||
root(ERROR, ['STDOUT']) | ||
|
||
if(Environment.current == Environment.DEVELOPMENT) { | ||
def targetDir = BuildSettings.TARGET_DIR | ||
if(targetDir) { | ||
|
||
appender("FULL_STACKTRACE", FileAppender) { | ||
|
||
file = "${targetDir}/stacktrace.log" | ||
append = true | ||
encoder(PatternLayoutEncoder) { | ||
pattern = "%level %logger - %msg%n" | ||
} | ||
def targetDir = BuildSettings.TARGET_DIR | ||
if (Environment.isDevelopmentMode() && targetDir != null) { | ||
appender("FULL_STACKTRACE", FileAppender) { | ||
file = "${targetDir}/stacktrace.log" | ||
append = true | ||
encoder(PatternLayoutEncoder) { | ||
pattern = "%level %logger - %msg%n" | ||
} | ||
logger("StackTrace", ERROR, ['FULL_STACKTRACE'], false ) | ||
} | ||
logger("StackTrace", ERROR, ['FULL_STACKTRACE'], false) | ||
} | ||
root(ERROR, ['STDOUT']) | ||
|
||
|
||
logger 'com.budjb.rabbitmq', DEBUG |