Top Constructors Methods
io.vertx.core.logging

public Class VertxLoggerFormatter

extends Formatter
Class Inheritance
Imports
io.vertx.core.impl.Utils, java.io.PrintWriter, .StringWriter, java.time.Instant, .OffsetDateTime, .ZoneId, java.time.format.DateTimeFormatter, java.util.logging.LogRecord

Author
Andy Taylor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
format(final LogRecord
the log record to be formatted.
record
)

Implements abstract java.util.logging.Formatter.format.

Format the given log record and return the formatted string.

private static OffsetDateTime
fromMillis(long epochMillis)

Inherited from java.util.logging.Formatter:
formatMessagegetHeadgetTail

Constructor Detail

VertxLoggerFormatterback to summary
public VertxLoggerFormatter()

Method Detail

formatback to summary
public String format(final LogRecord record)

Implements abstract java.util.logging.Formatter.format.

Doc from java.util.logging.Formatter.format.

Format the given log record and return the formatted string.

The resulting formatted String will normally include a localized and formatted version of the LogRecord's message field. It is recommended to use the Formatter#formatMessage convenience method to localize and format the message field.

Parameters
record:LogRecord

the log record to be formatted.

Returns:String

the formatted log record

Annotations
@Override
fromMillisback to summary
private static OffsetDateTime fromMillis(long epochMillis)