public class BuildLoggerImpl extends AbstractBuildLogger implements FileWritingBuildLogger
Modifier and Type | Field and Description |
---|---|
protected ExpiryTicker |
expiryTicker |
Constructor and Description |
---|
BuildLoggerImpl(LoggerId<? extends Key> loggerId,
@NotNull ExpiryTicker expiryTicker) |
Modifier and Type | Method and Description |
---|---|
void |
appendLogFile(@NotNull File logFile)
Append content from a log file to this log.
|
void |
flush() |
boolean |
isPersistent() |
void |
onAddLogEntry(@NotNull LogEntry logEntry) |
void |
reOpenLogger(File logFile) |
void |
stopStreamingBuildLogs()
Stop streaming any logs to the build logs file
|
void |
switchPersistence(LoggerId<? extends Key> loggerId,
boolean persistent) |
addBuildLogEntry, addBuildLogEntry, addErrorLogEntry, addErrorLogEntry, addErrorLogEntry, addErrorLogEntryInternal, addLogEntry, close, getBuildLog, getErrorLog, getInterceptorStack, getLastNLogEntries, getLogEntryCount, getMutatorStack, getTimeOfLastLog, interceptAndMutate, interceptAndMutateError, setTimeOfLastLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastNLogEntries, getLogEntryCount
addBuildLogEntry, addBuildLogEntry, addErrorLogEntry, addErrorLogEntry, addErrorLogEntry, close, getInterceptorStack, getMutatorStack, getTimeOfLastLog, setTimeOfLastLog, transfersLogsAsArtifact
protected final ExpiryTicker expiryTicker
public BuildLoggerImpl(LoggerId<? extends Key> loggerId, @NotNull @NotNull ExpiryTicker expiryTicker)
public void reOpenLogger(File logFile)
reOpenLogger
in interface FileWritingBuildLogger
public void switchPersistence(LoggerId<? extends Key> loggerId, boolean persistent)
public void onAddLogEntry(@NotNull @NotNull LogEntry logEntry)
onAddLogEntry
in class AbstractBuildLogger
public void stopStreamingBuildLogs()
BuildLoggerWithoutLogAccess
stopStreamingBuildLogs
in interface BuildLoggerWithoutLogAccess
stopStreamingBuildLogs
in class AbstractBuildLogger
public void flush()
public void appendLogFile(@NotNull @NotNull File logFile) throws IOException
FileWritingBuildLogger
appendLogFile
in interface FileWritingBuildLogger
IOException
public boolean isPersistent()
isPersistent
in interface BuildLoggerWithoutLogAccess
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.