public class BuildLogUtils extends Object
Modifier and Type | Method and Description |
---|---|
static LogEntry |
convertToLogEntry(String fileEntry)
Converts a line from a file back into a LogEntry object
|
static String |
convertToLogFileEntry(LogEntry logEntry)
Convert the specified LogEntry object into a string to be written to a log file
|
static Class<? extends LogEntry> |
getLogEntryType(String logLine)
Return the specific type of
LogEntry for the given log line. |
static File |
getLogFileDirectory(Key entityKey)
Deprecated.
since 5.11, use
StorageLocationService#getBuildLogsDirectory(Key) instead. |
static File |
getLogFileDirectory(String entityKey)
Deprecated.
since 5.11, use
StorageLocationService#getBuildLogsDirectory(Key) instead. |
static String |
getLogFileName(Key entityKey,
int resultNumber)
Deprecated.
since 5.11, use
StorageLocationService#getLogFileName(Key, int) instead. |
static String |
getLogFileName(ResultKey resultKey)
Deprecated.
since 5.11, use
StorageLocationService instead. |
static void |
sendFileThroughLogger(File file,
BuildLogger buildLogger) |
static String[] |
splitLogEntry(String fileEntry) |
public static String convertToLogFileEntry(@NotNull LogEntry logEntry)
logEntry
- the LogEntry to be written@NotNull public static Class<? extends LogEntry> getLogEntryType(@NotNull String logLine)
LogEntry
for the given log line.@NotNull public static LogEntry convertToLogEntry(@Nullable String fileEntry)
fileEntry
- to be converted@Deprecated public static File getLogFileDirectory(@NotNull String entityKey)
StorageLocationService#getBuildLogsDirectory(Key)
instead.@Deprecated public static File getLogFileDirectory(@NotNull Key entityKey)
StorageLocationService#getBuildLogsDirectory(Key)
instead.@Deprecated public static String getLogFileName(@NotNull Key entityKey, int resultNumber)
StorageLocationService#getLogFileName(Key, int)
instead.@Deprecated public static String getLogFileName(ResultKey resultKey)
StorageLocationService
instead.public static void sendFileThroughLogger(@NotNull File file, @NotNull BuildLogger buildLogger) throws IOException
IOException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.