Package org.cyclos.impl.logging
Class LogFormatter
- java.lang.Object
-
- java.util.logging.Formatter
-
- org.cyclos.impl.logging.LogFormatter
-
public class LogFormatter extends Formatter
Custom log formatter
-
-
Field Summary
Fields Modifier and Type Field Description static charSEPARATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(LogRecord record)static Stringformat(LogConfiguration config, ServiceLogParams params)Formats a service log messagestatic Stringformat(LogConfiguration config, TaskLogParams params)Formats a task log messagestatic LogFormattergetInstance()static booleanshouldMask(String property, Object value)Returns whether the given property value should be masked-
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
-
-
-
-
Field Detail
-
SEPARATOR
public static final char SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
format
public static String format(LogConfiguration config, ServiceLogParams params)
Formats a service log message
-
format
public static String format(LogConfiguration config, TaskLogParams params)
Formats a task log message
-
getInstance
public static LogFormatter getInstance()
-
shouldMask
public static boolean shouldMask(String property, Object value)
Returns whether the given property value should be masked
-
-