Package com.composum.sling.core.util
Class LoggerFormat
- java.lang.Object
-
- java.text.Format
-
- com.composum.sling.core.util.LoggerFormat
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class LoggerFormat extends Format
a simple mapper to use a logging formatter as value format- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.text.Format
Format.Field
-
-
Constructor Summary
Constructors Constructor Description LoggerFormat(@NotNull String format)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuffer
format(Object obj, @NotNull StringBuffer toAppendTo, @NotNull FieldPosition pos)
static String
format(String message, Object... values)
Object
parseObject(String source, @NotNull ParsePosition pos)
-
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
-
-
-
-
Field Detail
-
format
public final String format
-
-
Constructor Detail
-
LoggerFormat
public LoggerFormat(@NotNull @NotNull String format)
-
-
Method Detail
-
format
public StringBuffer format(Object obj, @NotNull @NotNull StringBuffer toAppendTo, @NotNull @NotNull FieldPosition pos)
-
parseObject
public Object parseObject(String source, @NotNull @NotNull ParsePosition pos)
- Specified by:
parseObject
in classFormat
-
-