Class LogFormatHelper
- java.lang.Object
-
- com.sun.enterprise.server.logging.LogFormatHelper
-
public class LogFormatHelper extends Object
Helper class that provides methods to detect the log format of a record.
-
-
Constructor Summary
Constructors Constructor Description LogFormatHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isCompressedFile(String filename)
Determines whether the given file is compressed (name ends with .gz).static boolean
isJSONFormatLogHeader(String line)
Determines whether the given line is the beginning of a JSON log record.static boolean
isODLFormatLogHeader(String line)
Determines whether the given line is the beginning of a ODL log record.static boolean
isUniformFormatLogHeader(String line)
Determines whether the given line is the beginning of a UniformLogFormat log record.
-
-
-
Method Detail
-
isUniformFormatLogHeader
public static boolean isUniformFormatLogHeader(String line)
Determines whether the given line is the beginning of a UniformLogFormat log record.- Parameters:
line
-- Returns:
-
isODLFormatLogHeader
public static boolean isODLFormatLogHeader(String line)
Determines whether the given line is the beginning of a ODL log record.- Parameters:
line
-- Returns:
-
isJSONFormatLogHeader
public static boolean isJSONFormatLogHeader(String line)
Determines whether the given line is the beginning of a JSON log record.- Parameters:
line
- String to test if json- Returns:
- If the line is valid JSON
-
isCompressedFile
public static boolean isCompressedFile(String filename)
Determines whether the given file is compressed (name ends with .gz).- Parameters:
filename
-- Returns:
-
-