Interface BuildLogger
- All Superinterfaces:
BuildLoggerWithoutLogAccess
- All Known Subinterfaces:
FileWritingBuildLogger
- All Known Implementing Classes:
AbstractBuildLogger
,BuildLoggerImpl
,DisconnectedBuildLogger
,NullBuildLogger
,RemoteBuildLogger
,SimpleBuildLogger
This interface represents a logger for a given build
-
Method Summary
Modifier and TypeMethodDescriptiongetLastNLogEntries
(int n) Provide the latest build details (last n lines of logs).int
Total number of log entries.Methods inherited from interface com.atlassian.bamboo.build.logger.BuildLoggerWithoutLogAccess
addBuildLogEntry, addBuildLogEntry, addErrorLogEntry, addErrorLogEntry, addErrorLogEntry, close, getInterceptorStack, getMutatorStack, getTimeOfLastLog, isPersistent, setTimeOfLastLog, stopStreamingBuildLogs, transfersLogsAsArtifact
-
Method Details
-
getLastNLogEntries
Provide the latest build details (last n lines of logs). This is not persisted.- Returns:
- The list of
LogEntry
s.
-
getLogEntryCount
int getLogEntryCount()Total number of log entries.- Since:
- 7.0
-