|
||||||||||
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
@NotThreadSafe public class BuildLogFileWriter
Class to encapsulate streaming of build logs. This is not thread safe 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,
java.lang.String planKey)
Finds/Creates Log file for this build and establishes a write connection |
Method Summary | |
---|---|
void |
close()
Closes the writer to the log file. |
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 |
---|
public BuildLogFileWriter(int buildNum, @NotNull java.lang.String planKey) throws java.io.IOException
buildNum
- number for the buildplanKey
- key of the build
java.io.IOException
- if errors accessing the fileMethod Detail |
---|
public void writeLog(@NotNull LogEntry logEntry) throws java.io.IOException
logEntry
- to be written to file
java.io.IOException
- if errors accessing the filepublic void close() throws java.io.IOException
java.io.IOException
- if problems closing the file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |