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 LogEntrycloneAndMutate(String newUnstyledLog)Return new instance of LogEntry with log string replaced.@Nullable StringgetCssStyle()@NotNull DategetDate()StringgetFormattedDate()StringgetLog()@NotNull StringgetUnstyledLog()StringgetUsFormattedDate()voidlogTo(BuildLogger buildLogger)StringtoString()
-
-
-
Method Detail
-
getFormattedDate
public String getFormattedDate()
- Specified by:
getFormattedDatein interfaceLogEntry
-
getUsFormattedDate
public String getUsFormattedDate()
- Specified by:
getUsFormattedDatein interfaceLogEntry
-
logTo
public void logTo(BuildLogger buildLogger)
-
getCssStyle
@Nullable public @Nullable String getCssStyle()
- Specified by:
getCssStylein interfaceLogEntry
-
getUnstyledLog
@NotNull public @NotNull String getUnstyledLog()
- Specified by:
getUnstyledLogin interfaceLogEntry
-
cloneAndMutate
public LogEntry cloneAndMutate(String newUnstyledLog)
Description copied from interface:LogEntryReturn new instance of LogEntry with log string replaced.- Specified by:
cloneAndMutatein interfaceLogEntry- Returns:
-
-