Interface BuildLoggerWithoutLogAccess
- All Known Subinterfaces:
BuildLogger
,FileWritingBuildLogger
- All Known Implementing Classes:
AbstractBuildLogger
,BuildLoggerImpl
,DisconnectedBuildLogger
,NullBuildLogger
,RemoteBuildLogger
,SimpleBuildLogger
public interface BuildLoggerWithoutLogAccess
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
addBuildLogEntry
(@NotNull LogEntry logEntry) Add a new build log entry.addBuildLogEntry
(@NotNull String logString) Create a new build log entry from text to append to logs@NotNull String
addErrorLogEntry
(@NotNull LogEntry logEntry) Add a new build error log entry.addErrorLogEntry
(String logString) Add a new build error log entry from text.void
addErrorLogEntry
(String logString, @Nullable Throwable e) Adds an error log entry and each frame of the stack trace as a new error log entryvoid
close()
@NotNull LogInterceptorStack
@NotNull LogMutatorStack
long
last time a log entry was added.boolean
void
setTimeOfLastLog
(long timeOfLastLog) set time of last log.void
Stop streaming any logs to the build logs filedefault boolean
-
Method Details
-
addBuildLogEntry
Add a new build log entry. This will get appended to the end of the log.- Parameters:
logEntry
- The data being logged- Returns:
- The line of text being logged. From
LogEntry.getUnstyledLog()
.
-
addBuildLogEntry
Create a new build log entry from text to append to logs- Parameters:
logString
- text to create log entry from- Returns:
- The line of text being logged. From
LogEntry.getUnstyledLog()
.
-
addErrorLogEntry
Add a new build error log entry. This will get appended to the end of the log and to the end of the errors.- Parameters:
logEntry
- The data being logged- Returns:
- The line of text being logged. From
LogEntry.getUnstyledLog()
.
-
addErrorLogEntry
Add a new build error log entry from text. This will get appended to the end of the log and to the end of the errors.- Parameters:
logString
- The text to create log entry from- Returns:
- The line of text being logged. From
LogEntry.getUnstyledLog()
.
-
addErrorLogEntry
Adds an error log entry and each frame of the stack trace as a new error log entry- Parameters:
logString
-e
-
-
stopStreamingBuildLogs
void stopStreamingBuildLogs()Stop streaming any logs to the build logs file -
getTimeOfLastLog
long getTimeOfLastLog()last time a log entry was added. If no logs, returns 0- Returns:
-
setTimeOfLastLog
void setTimeOfLastLog(long timeOfLastLog) set time of last log. Used for loading buildings in progress after restarts -
getInterceptorStack
- Returns:
- stack of log interceptors attached to this build logger
-
getMutatorStack
- Returns:
- stack of log mutators attached to this build logger
-
close
void close() -
transfersLogsAsArtifact
default boolean transfersLogsAsArtifact() -
isPersistent
boolean isPersistent()- Returns:
- true if underlying logger saves to disk
- Since:
- 7.1
-