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
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
- if problems closing the filepublic void flush() throws IOException
flush
in interface Flushable
IOException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.