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

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

public class RemoteBuildLogger
extends AbstractBuildLogger


Field Summary
 
Fields inherited from class com.atlassian.bamboo.build.logger.AbstractBuildLogger
expiryTicker
 
Constructor Summary
RemoteBuildLogger(LoggerId<? extends java.io.Serializable> loggerId, BambooAgentMessageSender sender)
           
RemoteBuildLogger(java.lang.String buildPlanKey, BambooAgentMessageSender sender)
          Deprecated. 
 
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 onAddLogEntry(LogEntry logEntry)
           
 void stopStreamingBuildLogs()
          Stop streaming any logs to the build logs file
 
Methods inherited from class com.atlassian.bamboo.build.logger.AbstractBuildLogger
addBuildLogEntry, addBuildLogHeader, addErrorLogEntry, addErrorLogEntry, close, getBuildLog, getErrorLog, getInterceptorStack, getLastNLogEntries, getStringErrorLogs, getTimeOfLastLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteBuildLogger

@Deprecated
public RemoteBuildLogger(java.lang.String buildPlanKey,
                                    BambooAgentMessageSender sender)
Deprecated. 


RemoteBuildLogger

public RemoteBuildLogger(LoggerId<? extends java.io.Serializable> loggerId,
                         BambooAgentMessageSender sender)
Method Detail

addBuildLogEntry

@NotNull
public java.lang.String addBuildLogEntry(@NotNull
                                                 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 AbstractBuildLogger
Parameters:
logEntry - The data being logged
Returns:
The line of text being logged. From LogEntry.getUnstyledLog().

addErrorLogEntry

@NotNull
public java.lang.String addErrorLogEntry(@NotNull
                                                 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 AbstractBuildLogger
Parameters:
logEntry - The data being logged
Returns:
The line of text being logged. From LogEntry.getUnstyledLog().

onAddLogEntry

public void onAddLogEntry(@NotNull
                          LogEntry logEntry)
Specified by:
onAddLogEntry in class AbstractBuildLogger

stopStreamingBuildLogs

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

Specified by:
stopStreamingBuildLogs in interface BuildLogger
Specified by:
stopStreamingBuildLogs in class AbstractBuildLogger

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 AbstractBuildLogger


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.