@NotThreadSafe public class BuildLogFileWriter extends Object implements Closeable, Flushable
| Constructor and Description |
|---|
BuildLogFileWriter(File logFile,
@NotNull ExpiryTicker expiryTicker) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the writer to the log file.
|
void |
flush() |
void |
writeLog(@NotNull LogEntry logEntry)
Writes one line of logs to the log file
|
void |
writeVerbatim(@NotNull String text)
Writes a text to a log file without any changes.
|
public BuildLogFileWriter(File logFile, @NotNull @NotNull ExpiryTicker expiryTicker)
public void writeLog(@NotNull
@NotNull LogEntry logEntry)
throws IOException
logEntry - to be written to fileIOException - if errors accessing the filepublic void writeVerbatim(@NotNull
@NotNull String text)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException - if problems closing the filepublic void flush()
throws IOException
flush in interface FlushableIOExceptionCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.