Package com.atlassian.bamboo.build
Class SimpleLogEntry
- java.lang.Object
-
- com.atlassian.bamboo.build.SimpleLogEntry
-
- All Implemented Interfaces:
LogEntry
,Serializable
- Direct Known Subclasses:
BuildOutputLogEntry
,CommandLogEntry
,ErrorLogEntry
public class SimpleLogEntry extends Object implements LogEntry
Simple POJO for representing build build events.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleLogEntry(@NotNull String log)
SimpleLogEntry(@NotNull String log, @Nullable Date time)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogEntry
cloneAndMutate(String newUnstyledLog)
Return new instance of LogEntry with log string replaced.@Nullable String
getCssStyle()
@NotNull Date
getDate()
String
getFormattedDate()
String
getLog()
@NotNull String
getUnstyledLog()
String
getUsFormattedDate()
void
logTo(BuildLogger buildLogger)
String
toString()
-
-
-
Method Detail
-
getFormattedDate
public String getFormattedDate()
- Specified by:
getFormattedDate
in interfaceLogEntry
-
getUsFormattedDate
public String getUsFormattedDate()
- Specified by:
getUsFormattedDate
in interfaceLogEntry
-
logTo
public void logTo(BuildLogger buildLogger)
-
getCssStyle
@Nullable public @Nullable String getCssStyle()
- Specified by:
getCssStyle
in interfaceLogEntry
-
getUnstyledLog
@NotNull public @NotNull String getUnstyledLog()
- Specified by:
getUnstyledLog
in interfaceLogEntry
-
cloneAndMutate
public LogEntry cloneAndMutate(String newUnstyledLog)
Description copied from interface:LogEntry
Return new instance of LogEntry with log string replaced.- Specified by:
cloneAndMutate
in interfaceLogEntry
- Returns:
-
-