java.util.EventListener, BuildListener, BuildLoggerSimpleBigProjectLoggerpublic class NoBannerLogger extends DefaultLogger
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
targetName |
Name of the current target, if it should
be displayed on the next message.
|
emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out| Constructor | Description |
|---|---|
NoBannerLogger() |
Sole constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.String |
extractTargetName(BuildEvent event) |
Override point, extract the target name
|
void |
messageLogged(BuildEvent event) |
Logs a message for a target if it is of an appropriate
priority, also logging the name of the target if this
is the first message which needs to be logged for the
target.
|
void |
targetFinished(BuildEvent event) |
Resets the current target name to
null. |
void |
targetStarted(BuildEvent event) |
Notes the name of the target so it can be logged
if it generates any messages.
|
buildFinished, buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getTimestamp, log, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStream, taskFinished, taskStartedprotected java.lang.String targetName
null after the first message for
the target is logged.public void targetStarted(BuildEvent event)
targetStarted in interface BuildListenertargetStarted in class DefaultLoggerevent - A BuildEvent containing target information.
Must not be null.BuildEvent.getTarget()protected java.lang.String extractTargetName(BuildEvent event)
event - the event to work onpublic void targetFinished(BuildEvent event)
null.targetFinished in interface BuildListenertargetFinished in class DefaultLoggerevent - Ignored in this implementation.BuildEvent.getException()public void messageLogged(BuildEvent event)
messageLogged in interface BuildListenermessageLogged in class DefaultLoggerevent - A BuildEvent containing message information.
Must not be null.BuildEvent.getMessage(),
BuildEvent.getException(),
BuildEvent.getPriority()