This shows roughly similar configurations to distinguish message formats for different error levels in log4j version 2. I believe the yaml configuration is the easiert to read and maintain.
This file contains hidden or 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
apply plugin: 'java' | |
repositories { mavenCentral() } | |
// we generate into the build dir | |
def generatedSourcesDir = new File(buildDir, 'gensrc') | |
// create a configuration that holds the Xjc compiler |