public class BuildLoggerImpl extends AbstractBuildLogger implements FileWritingBuildLogger
Modifier and Type | Field and Description |
---|---|
protected ExpiryTicker |
expiryTicker |
Constructor and Description |
---|
BuildLoggerImpl(LoggerId<? extends Key> loggerId,
ExpiryTicker expiryTicker) |
Modifier and Type | Method and Description |
---|---|
void |
appendLogFile(File logFile)
Append content from a log file to this log.
|
void |
flush() |
boolean |
isPersistent() |
void |
onAddLogEntry(LogEntry logEntry) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastNLogEntries, getLogEntryCount
addBuildLogEntry, addBuildLogEntry, addErrorLogEntry, addErrorLogEntry, addErrorLogEntry, close, getInterceptorStack, getMutatorStack, getTimeOfLastLog, transfersLogsAsArtifact
protected final ExpiryTicker expiryTicker
public BuildLoggerImpl(LoggerId<? extends Key> loggerId, @NotNull ExpiryTicker expiryTicker)
public void switchPersistence(LoggerId<? extends Key> loggerId, boolean persistent)
public void onAddLogEntry(@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 File logFile) throws IOException
FileWritingBuildLogger
appendLogFile
in interface FileWritingBuildLogger
IOException
public boolean isPersistent()
isPersistent
in interface BuildLoggerWithoutLogAccess
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences