public class RemoteBuildLogger extends AbstractBuildLogger
Constructor and Description |
---|
RemoteBuildLogger(File logFile,
LoggerId<? extends Key> loggerId,
BambooAgentMessageSender sender,
ExpiryTicker expiryTicker) |
Modifier and Type | Method and Description |
---|---|
String |
addBuildLogEntry(LogEntry logEntry)
Add a new build log entry.
|
String |
addErrorLogEntry(LogEntry logEntry)
Add a new build error log entry.
|
void |
onAddLogEntry(LogEntry logEntry) |
void |
onEvent(LogsAreWatchedAgentMessage watchedAgentMessage) |
void |
stopStreamingBuildLogs()
Stop streaming any logs to the build logs file
|
addBuildLogEntry, addBuildLogHeader, addErrorLogEntry, addErrorLogEntry, addErrorLogEntryInternal, addLogEntry, clearBuildLog, close, getBuildLog, getErrorLog, getInterceptorStack, getLastNLogEntries, getMutatorStack, getStringErrorLogs, getTimeOfLastLog, interceptAndMutate, interceptAndMutateError
public RemoteBuildLogger(File logFile, LoggerId<? extends Key> loggerId, BambooAgentMessageSender sender, ExpiryTicker expiryTicker)
@EventListener public void onEvent(LogsAreWatchedAgentMessage watchedAgentMessage)
@NotNull public String addBuildLogEntry(@NotNull LogEntry logEntry)
BuildLogger
addBuildLogEntry
in interface BuildLogger
addBuildLogEntry
in class AbstractBuildLogger
logEntry
- The data being loggedLogEntry.getUnstyledLog()
.@NotNull public String addErrorLogEntry(@NotNull LogEntry logEntry)
BuildLogger
addErrorLogEntry
in interface BuildLogger
addErrorLogEntry
in class AbstractBuildLogger
logEntry
- The data being loggedLogEntry.getUnstyledLog()
.public void onAddLogEntry(@NotNull LogEntry logEntry)
onAddLogEntry
in class AbstractBuildLogger
public void stopStreamingBuildLogs()
BuildLogger
stopStreamingBuildLogs
in interface BuildLogger
stopStreamingBuildLogs
in class AbstractBuildLogger
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.