Class MavenLogger
java.lang.Object
de.iip_ecosphere.platform.support.logging.FallbackLogger
de.iip_ecosphere.platform.configuration.maven.MavenLogger
- All Implemented Interfaces:
de.iip_ecosphere.platform.support.logging.Logger
public class MavenLogger
extends de.iip_ecosphere.platform.support.logging.FallbackLogger
A wrapping maven logger mapping oktoflow log calles to maven.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.logging.Logger
de.iip_ecosphere.platform.support.logging.Logger.Emitter -
Field Summary
FieldsFields inherited from interface de.iip_ecosphere.platform.support.logging.Logger
ROOT_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidemit(de.iip_ecosphere.platform.support.logging.LogLevel level, String msg, Throwable th, PrintStream out) Emits the given messagemsgwith no argument, possibly with the given throwableth.(package private) static voidinstall(org.apache.maven.plugin.logging.Log logger) Installs the logger, wrappinglogger.Methods inherited from class de.iip_ecosphere.platform.support.logging.FallbackLogger
abbreviate, debug, debug, debug, debug, debug, error, error, error, error, error, getLevel, getName, info, info, info, info, info, setEmitter, setLevel, setStreams, trace, trace, trace, trace, trace, warn, warn, warn, warn, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.support.logging.Logger
log, log, log, log, log
-
Field Details
-
log
private static org.apache.maven.plugin.logging.Log log
-
-
Constructor Details
-
MavenLogger
Creates an instance.- Parameters:
name- the name of the logger
-
-
Method Details
-
install
static void install(org.apache.maven.plugin.logging.Log logger) Installs the logger, wrappinglogger.- Parameters:
logger- the logger
-
emit
private void emit(de.iip_ecosphere.platform.support.logging.LogLevel level, String msg, Throwable th, PrintStream out) Emits the given messagemsgwith no argument, possibly with the given throwableth.- Parameters:
level- the target loglevelmsg- the message, logged is it is, prefixed with logger name, logger level and timeth- optional throwable to be logged, may be nullout- the target output stream
-