Package org.apache.maven.cling.invoker
Class ProtoLogger
java.lang.Object
org.apache.maven.cling.invoker.ProtoLogger
- All Implemented Interfaces:
Logger
Proto
Logger
. Uses provided PrintStream
s or System
ones as fallback.
Supports only two levels: ERROR and WARNING, that is emitted to STDERR and STDOUT.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.api.cli.Logger
Logger.Level
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
log
(Logger.Level level, String message, Throwable error) Logs a message at the specified level with an associated exception.private PrintStream
toPsOrDef
(OutputStream outputStream, PrintStream def)
-
Field Details
-
out
-
err
-
-
Constructor Details
-
ProtoLogger
public ProtoLogger() -
ProtoLogger
-
-
Method Details
-
toPsOrDef
-
log
Description copied from interface:Logger
Logs a message at the specified level with an associated exception.
-