abstract class LogHandler
extends org.apache.commons.exec.LogOutputStream
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
LogHandler.StdErr
Implementation that logs default line to 'warn' : that kinda suits the std.err output.
|
(package private) static class |
LogHandler.StdOut
Implementation that logs default line to 'info' : that kinda suits the std.out output.
|
| Modifier and Type | Field and Description |
|---|---|
private String |
debugPrefix |
private String |
errPrefix |
(package private) org.apache.maven.plugin.logging.Log |
logger |
private String |
warnPrefix |
| Constructor and Description |
|---|
LogHandler(org.apache.maven.plugin.logging.Log logger,
Level logLevel,
String errPrefix,
String warnPrefix,
String debugPrefix) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
isDebug(String line) |
(package private) boolean |
isError(String line) |
(package private) boolean |
isWarn(String line) |
(package private) abstract void |
logDefault(String line)
Implement to chose the default log level for an input line.
|
protected void |
processLine(String line,
int logLevel) |
close, flush, getMessageLevel, processBuffer, processLine, write, writewritefinal org.apache.maven.plugin.logging.Log logger
private String errPrefix
private String warnPrefix
private String debugPrefix
protected void processLine(String line, int logLevel)
processLine in class org.apache.commons.exec.LogOutputStreamabstract void logDefault(String line)
line - the line to log, that has not been identified as ERROR/WARN/DEBUG.boolean isError(String line)
boolean isWarn(String line)
boolean isDebug(String line)
Copyright © 2020. All rights reserved.