Package io.contextmap.infrastructure
Class MojoLogger
java.lang.Object
io.contextmap.infrastructure.MojoLogger
- All Implemented Interfaces:
io.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger
public class MojoLogger
extends Object
implements io.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger
Singleton to easily access the logger of the Mojo without having to pass it around everywhere.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddebug(CharSequence text) voiddebug(CharSequence text, Throwable t) voiderror(CharSequence text) voiderror(CharSequence text, Throwable throwable) voidinfo(CharSequence text) static voidinitLogger(org.apache.maven.plugin.logging.Log log) voidwarn(CharSequence text)
-
Field Details
-
logger
-
-
Method Details
-
initLogger
public static void initLogger(org.apache.maven.plugin.logging.Log log) -
debug
- Specified by:
debugin interfaceio.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger
-
debug
-
info
- Specified by:
infoin interfaceio.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger
-
error
-
error
-
warn
- Specified by:
warnin interfaceio.contextmap.core.reflection.ObjectToJsonConverter.ObjectToJsonLogger
-