|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.logger.BuildLogFileWriter
public class BuildLogFileWriter
Class to encapsulate streaming of build logs. The writer is opened on creation of the BuildLogFileWriter and a call to close() must be made when finished writing.
Constructor Summary | |
---|---|
BuildLogFileWriter(int buildNum,
String planKey)
Deprecated. since 5.0 |
|
BuildLogFileWriter(LoggerId loggerId,
ExpiryTicker expiryTicker)
|
Method Summary | |
---|---|
void |
close()
Closes the writer to the log file. |
void |
flush()
|
void |
writeLog(LogEntry logEntry)
Writes one line of logs to the log file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public BuildLogFileWriter(int buildNum, @NotNull String planKey) throws IOException
buildNum
- number for the buildplanKey
- key of the build
IOException
- if errors accessing the filepublic BuildLogFileWriter(@NotNull LoggerId loggerId, @NotNull ExpiryTicker expiryTicker) throws IOException
IOException
Method Detail |
---|
public void writeLog(@NotNull LogEntry logEntry) throws IOException
logEntry
- to be written to file
IOException
- if errors accessing the filepublic void close() throws IOException
close
in interface Closeable
IOException
- if problems closing the filepublic void flush() throws IOException
flush
in interface Flushable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |