Interface FileWritingBuildLogger
- All Superinterfaces:
BuildLogger,BuildLoggerWithoutLogAccess
- All Known Implementing Classes:
BuildLoggerImpl
Build logger that writes to a file.
-
Method Summary
Modifier and TypeMethodDescription@NotNull StringaddRemoteBuildLogEntry(@NotNull LogEntry entry, boolean needToPersistOnTarget, boolean addedAfterLogSpoolClosed) @NotNull StringaddRemoteErrorLogEntry(@NotNull LogEntry entry, boolean needToPersistOnTarget, boolean addedAfterLogSpoolClosed) voidhandleRemoteLogFile(@NotNull File logFile, @NotNull File remoteLogFile) Replace underlying log file with the remote log.Methods inherited from interface com.atlassian.bamboo.build.logger.BuildLogger
getLastNLogEntries, getLogEntryCountMethods inherited from interface com.atlassian.bamboo.build.logger.BuildLoggerWithoutLogAccess
addBuildLogEntry, addBuildLogEntry, addErrorLogEntry, addErrorLogEntry, addErrorLogEntry, close, getInterceptorStack, getMutatorStack, getTimeOfLastLog, isPersistent, setTimeOfLastLog, stopStreamingBuildLogs, transfersLogsAsArtifact
-
Method Details
-
addRemoteBuildLogEntry
-
addRemoteErrorLogEntry
-
handleRemoteLogFile
void handleRemoteLogFile(@NotNull @NotNull File logFile, @NotNull @NotNull File remoteLogFile) throws IOException Replace underlying log file with the remote log. If not possible, then append. Stop accepting live logs from remote agent.- Throws:
IOException
-