public class BuildLoggerImpl extends AbstractBuildLogger implements FileWritingBuildLogger
Modifier and Type | Field and Description |
---|---|
protected ExpiryTicker |
expiryTicker |
Constructor and Description |
---|
BuildLoggerImpl(LoggerId 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 |
makePersistent(LoggerId loggerId) |
void |
onAddLogEntry(LogEntry logEntry) |
void |
stopStreamingBuildLogs()
Stop streaming any logs to the build logs file
|
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 loggerId, @NotNull ExpiryTicker expiryTicker)
public void makePersistent(LoggerId loggerId)
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 © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.