|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.logger.BuildLogUtils
public class BuildLogUtils
Provides text parsing utilities for writing and reading build log files.
Field Summary | |
---|---|
protected static java.lang.String |
SEPERATOR
|
Method Summary | |
---|---|
static LogEntry |
convertToLogEntry(java.lang.String fileEntry)
Converts a line from a file back into a LogEntry object |
static LogEntry |
convertToLogEntry(java.lang.String fileEntry,
java.text.SimpleDateFormat dateFormat)
Converts a line from a file back into a LogEntry object |
static java.lang.String |
convertToLogFileEntry(LogEntry logEntry)
Convert the specified LogEntry object into a string to be written to a log file |
static java.io.File |
getLogFileDirectory(java.lang.String planKey)
Retrieves the standard location for a builds log files based on the bamboo home |
static java.lang.String |
getLogFileName(java.lang.String planKey,
int buildNumber)
Returns the standard naming convention for log files |
static void |
sendFileThroughLogger(java.io.File file,
BuildLogger buildLogger)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String SEPERATOR
Method Detail |
---|
public static java.lang.String convertToLogFileEntry(@NotNull LogEntry logEntry)
logEntry
- the LogEntry to be written
public static LogEntry convertToLogEntry(java.lang.String fileEntry)
fileEntry
- to be converted
@Nullable public static LogEntry convertToLogEntry(java.lang.String fileEntry, @NotNull java.text.SimpleDateFormat dateFormat)
fileEntry
- to be converteddateFormat
-
public static java.io.File getLogFileDirectory(java.lang.String planKey)
planKey
- for this file
public static java.lang.String getLogFileName(java.lang.String planKey, int buildNumber)
planKey
- for the logs filebuildNumber
- for the log file
public static void sendFileThroughLogger(@NotNull java.io.File file, @NotNull BuildLogger buildLogger) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |