public class BuildLogFileWriter extends Object implements Closeable, Flushable
Constructor and Description |
---|
BuildLogFileWriter(int buildNum,
String planKey)
Deprecated.
since 5.0
|
BuildLogFileWriter(LoggerId loggerId,
ExpiryTicker expiryTicker) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer to the log file.
|
void |
flush() |
void |
writeLog(LogEntry logEntry)
Writes one line of logs to the log file
|
@Deprecated public BuildLogFileWriter(int buildNum, @NotNull String planKey) throws IOException
buildNum
- number for the buildplanKey
- key of the buildIOException
- if errors accessing the filepublic BuildLogFileWriter(@NotNull LoggerId loggerId, @NotNull ExpiryTicker expiryTicker) throws IOException
IOException
public void writeLog(@NotNull LogEntry logEntry) throws IOException
logEntry
- to be written to fileIOException
- if errors accessing the filepublic 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 © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.