@PublicApi
public interface BuildLogger
Modifier and Type | Method and Description |
---|---|
String |
addBuildLogEntry(LogEntry logEntry)
Add a new build log entry.
|
String |
addBuildLogEntry(String logString)
Create a new build log entry from text to append to logs
|
String |
addBuildLogHeader(String logString,
boolean showBothBanner)
Deprecated.
since 6.1 use other log methods
|
String |
addErrorLogEntry(LogEntry logEntry)
Add a new build error log entry.
|
String |
addErrorLogEntry(String logString)
Add a new build error log entry from text.
|
void |
addErrorLogEntry(String logString,
Throwable e)
Adds an error log entry and each frame of the stack trace as a new error log entry
|
void |
clearBuildLog()
Deprecated.
since 6.1
|
void |
close() |
List<LogEntry> |
getBuildLog()
Deprecated.
since 5.5 use log interceptors to get this information
|
List<LogEntry> |
getErrorLog()
Deprecated.
since 5.5 use log interceptors to get this information
|
LogInterceptorStack |
getInterceptorStack() |
List<LogEntry> |
getLastNLogEntries(int n)
Provide the latest build details (last n lines of logs).
|
LogMutatorStack |
getMutatorStack() |
List<String> |
getStringErrorLogs()
Deprecated.
since 5.0
|
long |
getTimeOfLastLog()
last time a log entry was added.
|
void |
stopStreamingBuildLogs()
Stop streaming any logs to the build logs file
|
@NotNull @Deprecated List<LogEntry> getBuildLog()
LogEntry
s.@NotNull @Deprecated List<LogEntry> getErrorLog()
LogEntry
s.@NotNull List<LogEntry> getLastNLogEntries(int n)
LogEntry
s.@Deprecated List<String> getStringErrorLogs()
@NotNull String addBuildLogEntry(@NotNull LogEntry logEntry)
logEntry
- The data being loggedLogEntry.getUnstyledLog()
.String addBuildLogEntry(@NotNull String logString)
logString
- text to create log entry fromLogEntry.getUnstyledLog()
.@Deprecated String addBuildLogHeader(String logString, boolean showBothBanner)
@NotNull String addErrorLogEntry(@NotNull LogEntry logEntry)
logEntry
- The data being loggedLogEntry.getUnstyledLog()
.String addErrorLogEntry(String logString)
logString
- The text to create log entry fromLogEntry.getUnstyledLog()
.void addErrorLogEntry(String logString, @Nullable Throwable e)
logString
- e
- void stopStreamingBuildLogs()
@Deprecated void clearBuildLog()
long getTimeOfLastLog()
@NotNull LogInterceptorStack getInterceptorStack()
@NotNull LogMutatorStack getMutatorStack()
void close()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.