Skip to content

Instantly share code, notes, and snippets.

@hmarggraff
hmarggraff / build.gradle
Created September 25, 2014 15:35
mimimal code for a task for jaxb code generation with xjc from a gradle build.
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
@hmarggraff
hmarggraff / areadme.md
Created July 11, 2014 09:41
Configure log4j2 with yaml, json and xml for different message layout of different log levels

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.