Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

GMaven uses SLF4j and uses the Gossip provider to allow for simple and flexible configuration of logging output.

Since version 1.0-rc-3, GMaven provides some default profiles to enable more logging for GMaven components.

To enable DEBUG logging for GMaven:

No Format

mvn -Dgmaven.logging=DEBUG

To enable TRACE logging for GMaven:

No Format

mvn -Dgmaven.logging=TRACE

Custom Logging Configuration

By default Gossip will use a reasonable default configuration. But if you feel like Maven is not spitting out enough information, or want to target the information displayed.

...

No Format
version=1.0

profiles=groovymojo-debug

##
## org.codehaus.mojo.logging=DEBUG
##

profile.groovymojo-debug.triggers=debugdefault

profile.groovymojo-debug.trigger.debugdefault=org.codehaus.groovy.maven.gossip.model.trigger.SystemPropertyTrigger
profile.groovymojo-debug.trigger.debugdefault.name=groovy-debug

profile.groovyorg.codehaus.mojo.logging
profile.mojo-debug.trigger.default.value=DEBUG
profile.mojo-debug.trigger.default.ignoreCase=true

profile.mojo-debug.filters=console

profile.groovymojo-debug.filter.console=org.codehaus.groovy.maven.gossip.model.filter.ConsoleWriter
profile.groovymojo-debug.filter.console.renderer=org.codehaus.groovy.maven.gossip.model.render.SimpleRenderer
profile.groovymojo-debug.filter.console.renderer.includeName=true
profile.groovymojo-debug.filter.console.renderer.shortName=true
profile.groovymojo-debug.filter.console.renderer.nameWidth=30

profile.groovymojo-debug.logger.org.codehaus.groovy.mavenmojo=DEBUG

And then flip it on by setting the groovy-debug property. Try it with the groovy:providers goal and see what it spits up.This example will enable DEBUG logging for Gossip enabled Mojo plugins when the org.codehaus.mojo.logging property is set to DEBUG.

No Format
mvn groovy:providers -Dgroovy-debugDorg.codehaus.mojo.logging=DEBUG

Internal Logging Configuration

...