com.atlassian.bamboo.build
Class SimpleLogEntry

java.lang.Object
  extended by com.atlassian.bamboo.build.SimpleLogEntry
All Implemented Interfaces:
LogEntry, java.io.Serializable
Direct Known Subclasses:
BuildOutputLogEntry, CommandLogEntry, ErrorLogEntry

public class SimpleLogEntry
extends java.lang.Object
implements LogEntry

Simple POJO for representing build build events.

See Also:
Serialized Form

Field Summary
static java.lang.String DATE_FORMAT_STRING
          Deprecated. use $LogEntryDateFormats.DATE_FORMAT_STRING instead
 
Constructor Summary
SimpleLogEntry(java.lang.String log)
           
SimpleLogEntry(java.lang.String log, java.util.Date time)
           
 
Method Summary
 java.lang.String getCssStyle()
           
 java.util.Date getDate()
           
 java.lang.String getFormattedDate()
           
 java.lang.String getLog()
           
 java.lang.String getUnstyledLog()
           
 void logTo(BuildLogger buildLogger)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATE_FORMAT_STRING

@NonNls
@Deprecated
public static final java.lang.String DATE_FORMAT_STRING
Deprecated. use $LogEntryDateFormats.DATE_FORMAT_STRING instead
Constructor Detail

SimpleLogEntry

public SimpleLogEntry(@NotNull
                      java.lang.String log)

SimpleLogEntry

public SimpleLogEntry(@NotNull
                      java.lang.String log,
                      @Nullable
                      java.util.Date time)
Method Detail

getFormattedDate

public java.lang.String getFormattedDate()
Specified by:
getFormattedDate in interface LogEntry

getDate

@NotNull
public java.util.Date getDate()
Specified by:
getDate in interface LogEntry

logTo

public void logTo(BuildLogger buildLogger)
Specified by:
logTo in interface LogEntry

getLog

public java.lang.String getLog()
Specified by:
getLog in interface LogEntry

getCssStyle

@Nullable
public java.lang.String getCssStyle()
Specified by:
getCssStyle in interface LogEntry

getUnstyledLog

@NotNull
public java.lang.String getUnstyledLog()
Specified by:
getUnstyledLog in interface LogEntry

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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