public class RemoteBuildLogger extends AbstractBuildLogger
Constructor and Description |
---|
RemoteBuildLogger(File logFile,
LoggerId<? extends Key> loggerId,
BambooAgentMessageSender sender,
ExpiryTicker expiryTicker,
BuildHangingConfig buildHangingConfig) |
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.
|
boolean |
isPersistent() |
void |
onAddLogEntry(LogEntry logEntry) |
void |
onEvent(LogsAreWatchedAgentMessage watchedAgentMessage) |
void |
stopStreamingBuildLogs()
Stop streaming any logs to the build logs file
|
boolean |
transfersLogsAsArtifact() |
addBuildLogEntry, addErrorLogEntry, addErrorLogEntry, addErrorLogEntryInternal, addLogEntry, close, getBuildLog, getErrorLog, getInterceptorStack, getLastNLogEntries, getLogEntryCount, getMutatorStack, getTimeOfLastLog, interceptAndMutate, interceptAndMutateError, setTimeOfLastLog
public RemoteBuildLogger(File logFile, LoggerId<? extends Key> loggerId, BambooAgentMessageSender sender, ExpiryTicker expiryTicker, BuildHangingConfig buildHangingConfig)
@EventListener public void onEvent(LogsAreWatchedAgentMessage watchedAgentMessage)
@NotNull public String addBuildLogEntry(@NotNull LogEntry logEntry)
BuildLoggerWithoutLogAccess
addBuildLogEntry
in interface BuildLoggerWithoutLogAccess
addBuildLogEntry
in class AbstractBuildLogger
logEntry
- The data being loggedLogEntry.getUnstyledLog()
.@NotNull public String addErrorLogEntry(@NotNull LogEntry logEntry)
BuildLoggerWithoutLogAccess
addErrorLogEntry
in interface BuildLoggerWithoutLogAccess
addErrorLogEntry
in class AbstractBuildLogger
logEntry
- The data being loggedLogEntry.getUnstyledLog()
.public void onAddLogEntry(@NotNull LogEntry logEntry)
onAddLogEntry
in class AbstractBuildLogger
public void stopStreamingBuildLogs()
BuildLoggerWithoutLogAccess
stopStreamingBuildLogs
in interface BuildLoggerWithoutLogAccess
stopStreamingBuildLogs
in class AbstractBuildLogger
public boolean transfersLogsAsArtifact()
public boolean isPersistent()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.