public interface BuildLoggerWithoutLogAccess
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 |
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 |
close() |
LogInterceptorStack |
getInterceptorStack() |
LogMutatorStack |
getMutatorStack() |
long |
getTimeOfLastLog()
last time a log entry was added.
|
boolean |
isPersistent() |
void |
setTimeOfLastLog(long timeOfLastLog)
set time of last log.
|
void |
stopStreamingBuildLogs()
Stop streaming any logs to the build logs file
|
default boolean |
transfersLogsAsArtifact() |
@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()
.@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()
long getTimeOfLastLog()
void setTimeOfLastLog(long timeOfLastLog)
@NotNull LogInterceptorStack getInterceptorStack()
@NotNull LogMutatorStack getMutatorStack()
void close()
default boolean transfersLogsAsArtifact()
boolean isPersistent()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.