com.atlassian.bamboo.v2.build.agent.remote
Class RemoteBuildLogger

java.lang.Object
  extended by com.atlassian.bamboo.build.logger.BuildLoggerImpl
      extended by com.atlassian.bamboo.v2.build.agent.remote.RemoteBuildLogger
All Implemented Interfaces:
BuildLogger

public class RemoteBuildLogger
extends BuildLoggerImpl


Constructor Summary
RemoteBuildLogger(java.lang.String buildPlanKey, BambooAgentMessageSender sender)
           
 
Method Summary
 java.lang.String addBuildLogEntry(LogEntry logEntry)
          Add a new build log entry.
 java.lang.String addErrorLogEntry(LogEntry logEntry)
          Add a new build error log entry.
 void clearBuildLog()
          Reset the build log, ready for the next build
 void stopStreamingBuildLogs()
          Stop streaming any logs to the build logs file
 
Methods inherited from class com.atlassian.bamboo.build.logger.BuildLoggerImpl
addBuildLogEntry, addBuildLogHeader, addErrorLogEntry, getBuildLog, getErrorLog, getLastNLogEntries, getStringErrorLogs, getTimeOfLastLog, startStreamingBuildLogs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteBuildLogger

public RemoteBuildLogger(java.lang.String buildPlanKey,
                         BambooAgentMessageSender sender)
Method Detail

addBuildLogEntry

public java.lang.String addBuildLogEntry(LogEntry logEntry)
Description copied from interface: BuildLogger
Add a new build log entry. This will get appended to the end of the log.

Specified by:
addBuildLogEntry in interface BuildLogger
Overrides:
addBuildLogEntry in class BuildLoggerImpl
Parameters:
logEntry - The data being logged
Returns:
The line of text being logged. From LogEntry.getUnstyledLog().

addErrorLogEntry

public java.lang.String addErrorLogEntry(LogEntry logEntry)
Description copied from interface: BuildLogger
Add a new build error log entry. This will get appended to the end of the log and to the end of the errors.

Specified by:
addErrorLogEntry in interface BuildLogger
Overrides:
addErrorLogEntry in class BuildLoggerImpl
Parameters:
logEntry - The data being logged
Returns:
The line of text being logged. From LogEntry.getUnstyledLog().

stopStreamingBuildLogs

public void stopStreamingBuildLogs()
Description copied from interface: BuildLogger
Stop streaming any logs to the build logs file

Specified by:
stopStreamingBuildLogs in interface BuildLogger
Overrides:
stopStreamingBuildLogs in class BuildLoggerImpl

clearBuildLog

public void clearBuildLog()
Description copied from interface: BuildLogger
Reset the build log, ready for the next build

Specified by:
clearBuildLog in interface BuildLogger
Overrides:
clearBuildLog in class BuildLoggerImpl


Copyright © 2011 Atlassian. All Rights Reserved.