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, interceptAndMutateErrorpublic RemoteBuildLogger(File logFile, LoggerId<? extends Key> loggerId, BambooAgentMessageSender sender, ExpiryTicker expiryTicker)
@EventListener public void onEvent(LogsAreWatchedAgentMessage watchedAgentMessage)
@NotNull public String addBuildLogEntry(@NotNull LogEntry logEntry)
BuildLoggeraddBuildLogEntry in interface BuildLoggeraddBuildLogEntry in class AbstractBuildLoggerlogEntry - The data being loggedLogEntry.getUnstyledLog().@NotNull public String addErrorLogEntry(@NotNull LogEntry logEntry)
BuildLoggeraddErrorLogEntry in interface BuildLoggeraddErrorLogEntry in class AbstractBuildLoggerlogEntry - The data being loggedLogEntry.getUnstyledLog().public void onAddLogEntry(@NotNull
LogEntry logEntry)
onAddLogEntry in class AbstractBuildLoggerpublic void stopStreamingBuildLogs()
BuildLoggerstopStreamingBuildLogs in interface BuildLoggerstopStreamingBuildLogs in class AbstractBuildLoggerCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.