- All Implemented Interfaces:
LogFormatter,LogFormatter.LevelFormatter,LogFormatter.ThrowableFormatter,LogFormatter.TimestampFormatter,Serializable,Comparable<LogFormatter.NoopFormatter>,Constable
- Enclosing interface:
LogFormatter
public static enum LogFormatter.NoopFormatter
extends Enum<LogFormatter.NoopFormatter>
implements LogFormatter.TimestampFormatter, LogFormatter.ThrowableFormatter, LogFormatter.LevelFormatter
A special formatter that will do nothing.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface io.jstach.rainbowgum.LogFormatter
LogFormatter.Builder, LogFormatter.EventFormatter, LogFormatter.LevelFormatter, LogFormatter.NoopFormatter, LogFormatter.StaticFormatter, LogFormatter.ThrowableFormatter, LogFormatter.TimestampFormatter -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface io.jstach.rainbowgum.LogFormatter.TimestampFormatter
TTLL_TIME_FORMAT -
Method Summary
Modifier and TypeMethodDescriptionvoidformat(StringBuilder output, LogEvent event) Formats a log event.voidformatLevel(StringBuilder output, System.Logger.Level level) Formats the level.voidformatThrowable(StringBuilder output, Throwable throwable) Formats a throwable and appends.voidformatTimestamp(StringBuilder output, Instant instant) Format timestamp.static LogFormatter.NoopFormatterReturns the enum constant of this class with the specified name.static LogFormatter.NoopFormatter[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface io.jstach.rainbowgum.LogFormatter
isNoopMethods inherited from interface io.jstach.rainbowgum.LogFormatter.LevelFormatter
formatLevel
-
Enum Constant Details
-
INSTANCE
instance.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
formatThrowable
Description copied from interface:LogFormatter.ThrowableFormatterFormats a throwable and appends.- Specified by:
formatThrowablein interfaceLogFormatter.ThrowableFormatter- Parameters:
output- buffer.throwable- throwable.
-
formatTimestamp
Description copied from interface:LogFormatter.TimestampFormatterFormat timestamp.- Specified by:
formatTimestampin interfaceLogFormatter.TimestampFormatter- Parameters:
output- buffer.instant- timestamp.
-
formatLevel
Description copied from interface:LogFormatter.LevelFormatterFormats the level.- Specified by:
formatLevelin interfaceLogFormatter.LevelFormatter- Parameters:
output- buffer.level- level.
-
format
Description copied from interface:LogFormatterFormats a log event.- Specified by:
formatin interfaceLogFormatter- Specified by:
formatin interfaceLogFormatter.LevelFormatter- Specified by:
formatin interfaceLogFormatter.ThrowableFormatter- Specified by:
formatin interfaceLogFormatter.TimestampFormatter- Parameters:
output- buffer.event- log event.- See Also:
-