|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.logger.BuildLoggerImpl
public class BuildLoggerImpl
Constructor Summary | |
---|---|
BuildLoggerImpl()
|
Method Summary | |
---|---|
java.lang.String |
addBuildLogEntry(LogEntry logEntry)
Add a new build log entry. |
java.lang.String |
addBuildLogEntry(java.lang.String logString)
Create a new build log entry from text to append to logs |
java.lang.String |
addBuildLogHeader(java.lang.String logString,
boolean showBothBanner)
|
java.lang.String |
addErrorLogEntry(LogEntry logEntry)
Add a new build error log entry. |
java.lang.String |
addErrorLogEntry(java.lang.String logString)
Add a new build error log entry from text. |
void |
addErrorLogEntry(java.lang.String logString,
java.lang.Throwable e)
Adds an error log entry and each frame of the stack trace as a new error log entry |
void |
clearBuildLog()
Reset the build log, ready for the next build |
void |
close()
|
java.util.List<LogEntry> |
getBuildLog()
Provide the latest build details (last 100 lines of logs). |
java.util.List<LogEntry> |
getErrorLog()
Provide the latest error logs. |
LogInterceptorStack |
getInterceptorStack()
|
java.util.List<LogEntry> |
getLastNLogEntries(int n)
Provide the latest build details (last n lines of logs). |
java.util.List<java.lang.String> |
getStringErrorLogs()
|
long |
getTimeOfLastLog()
last time a log entry was added. |
void |
startStreamingBuildLogs(PlanResultKey planResultKey)
Begin streaming any logs to build logs file |
void |
stopStreamingBuildLogs()
Stop streaming any logs to the build logs file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildLoggerImpl()
Method Detail |
---|
@NotNull public java.util.List<LogEntry> getBuildLog()
BuildLogger
getBuildLog
in interface BuildLogger
LogEntry
s.@NotNull public java.util.List<LogEntry> getErrorLog()
BuildLogger
getErrorLog
in interface BuildLogger
LogEntry
s.@NotNull public java.util.List<LogEntry> getLastNLogEntries(int n)
BuildLogger
getLastNLogEntries
in interface BuildLogger
LogEntry
s.@NotNull public java.util.List<java.lang.String> getStringErrorLogs()
getStringErrorLogs
in interface BuildLogger
@NotNull public java.lang.String addBuildLogEntry(@NotNull LogEntry logEntry)
BuildLogger
addBuildLogEntry
in interface BuildLogger
logEntry
- The data being logged
LogEntry.getUnstyledLog()
.@NotNull public java.lang.String addErrorLogEntry(@NotNull LogEntry logEntry)
BuildLogger
addErrorLogEntry
in interface BuildLogger
logEntry
- The data being logged
LogEntry.getUnstyledLog()
.@NotNull public java.lang.String addBuildLogEntry(@NotNull java.lang.String logString)
BuildLogger
addBuildLogEntry
in interface BuildLogger
logString
- text to create log entry from
LogEntry.getUnstyledLog()
.@NotNull public java.lang.String addErrorLogEntry(java.lang.String logString)
BuildLogger
addErrorLogEntry
in interface BuildLogger
logString
- The text to create log entry from
LogEntry.getUnstyledLog()
.public void addErrorLogEntry(java.lang.String logString, java.lang.Throwable e)
BuildLogger
addErrorLogEntry
in interface BuildLogger
@NotNull public java.lang.String addBuildLogHeader(java.lang.String logString, boolean showBothBanner)
addBuildLogHeader
in interface BuildLogger
public void clearBuildLog()
BuildLogger
clearBuildLog
in interface BuildLogger
public void startStreamingBuildLogs(@NotNull PlanResultKey planResultKey)
BuildLogger
startStreamingBuildLogs
in interface BuildLogger
public void stopStreamingBuildLogs()
BuildLogger
stopStreamingBuildLogs
in interface BuildLogger
public long getTimeOfLastLog()
BuildLogger
getTimeOfLastLog
in interface BuildLogger
@NotNull public LogInterceptorStack getInterceptorStack()
getInterceptorStack
in interface BuildLogger
public void close()
close
in interface BuildLogger
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |