public class DisconnectedBuildLogger extends Object implements BuildLogger
Constructor and Description |
---|
DisconnectedBuildLogger() |
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() |
List<LogEntry> |
getLastNLogEntries(int n)
Provide the latest build details (last n lines of logs).
|
int |
getLogEntryCount()
Total number of log entries.
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transfersLogsAsArtifact
@NotNull public String addBuildLogEntry(@NotNull LogEntry logEntry)
BuildLoggerWithoutLogAccess
addBuildLogEntry
in interface BuildLoggerWithoutLogAccess
logEntry
- The data being loggedLogEntry.getUnstyledLog()
.public String addBuildLogEntry(@NotNull String logString)
BuildLoggerWithoutLogAccess
addBuildLogEntry
in interface BuildLoggerWithoutLogAccess
logString
- text to create log entry fromLogEntry.getUnstyledLog()
.@NotNull public String addErrorLogEntry(@NotNull LogEntry logEntry)
BuildLoggerWithoutLogAccess
addErrorLogEntry
in interface BuildLoggerWithoutLogAccess
logEntry
- The data being loggedLogEntry.getUnstyledLog()
.public String addErrorLogEntry(String logString)
BuildLoggerWithoutLogAccess
addErrorLogEntry
in interface BuildLoggerWithoutLogAccess
logString
- The text to create log entry fromLogEntry.getUnstyledLog()
.public void addErrorLogEntry(String logString, @Nullable Throwable e)
BuildLoggerWithoutLogAccess
addErrorLogEntry
in interface BuildLoggerWithoutLogAccess
@NotNull public List<LogEntry> getLastNLogEntries(int n)
BuildLogger
getLastNLogEntries
in interface BuildLogger
LogEntry
s.public int getLogEntryCount()
BuildLogger
getLogEntryCount
in interface BuildLogger
public void stopStreamingBuildLogs()
BuildLoggerWithoutLogAccess
stopStreamingBuildLogs
in interface BuildLoggerWithoutLogAccess
public long getTimeOfLastLog()
BuildLoggerWithoutLogAccess
getTimeOfLastLog
in interface BuildLoggerWithoutLogAccess
public void setTimeOfLastLog(long timeOfLastLog)
BuildLoggerWithoutLogAccess
setTimeOfLastLog
in interface BuildLoggerWithoutLogAccess
@NotNull public LogInterceptorStack getInterceptorStack()
getInterceptorStack
in interface BuildLoggerWithoutLogAccess
@NotNull public LogMutatorStack getMutatorStack()
getMutatorStack
in interface BuildLoggerWithoutLogAccess
public void close()
close
in interface BuildLoggerWithoutLogAccess
public boolean isPersistent()
isPersistent
in interface BuildLoggerWithoutLogAccess
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.