Index

A B C D E G H I K L M O S T V W 
All Classes and Interfaces|All Packages

A

attr(String, Object) - Method in interface io.github.merlimat.slog.Event
Adds a structured key-value attribute to this event.
attr(String, Object) - Method in class io.github.merlimat.slog.Logger.Builder
Adds a context attribute to the child logger being built.
Attr - Record Class in io.github.merlimat.slog
A key-value pair representing a single structured logging attribute.
Attr(String, Object) - Constructor for record class io.github.merlimat.slog.Attr
Creates an instance of a Attr record class.
attrs() - Method in record class io.github.merlimat.slog.LogRecord
Returns the value of the attrs record component.

B

build() - Method in class io.github.merlimat.slog.Logger.Builder
Builds and returns the child logger with all accumulated attributes as a single chain node.

C

callerFqcn() - Method in record class io.github.merlimat.slog.LogRecord
Returns the value of the callerFqcn record component.
ctx(Logger) - Method in class io.github.merlimat.slog.Logger.Builder
Inherits all context attributes from another logger.

D

debug() - Method in class io.github.merlimat.slog.Logger
Returns a fluent DEBUG-level event builder.
debug(String) - Method in class io.github.merlimat.slog.Logger
Logs a message at DEBUG level.
debug(Consumer<Event>) - Method in class io.github.merlimat.slog.Logger
Passes an event builder to the given consumer at DEBUG level.
DEBUG - Enum constant in enum class io.github.merlimat.slog.Level
Fine-grained informational events useful for debugging.
debugf(String, Object...) - Method in class io.github.merlimat.slog.Logger
Logs a printf-formatted message at DEBUG level.
duration() - Method in record class io.github.merlimat.slog.LogRecord
Returns the value of the duration record component.

E

equals(Object) - Method in record class io.github.merlimat.slog.Attr
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class io.github.merlimat.slog.LogRecord
Indicates whether some other object is "equal to" this one.
error() - Method in class io.github.merlimat.slog.Logger
Returns a fluent ERROR-level event builder.
error(String) - Method in class io.github.merlimat.slog.Logger
Logs a message at ERROR level.
error(Consumer<Event>) - Method in class io.github.merlimat.slog.Logger
Passes an event builder to the given consumer at ERROR level.
ERROR - Enum constant in enum class io.github.merlimat.slog.Level
Error events that might still allow the application to continue.
errorf(String, Object...) - Method in class io.github.merlimat.slog.Logger
Logs a printf-formatted message at ERROR level.
Event - Interface in io.github.merlimat.slog
A fluent builder for constructing a structured log event.
exception(Throwable) - Method in interface io.github.merlimat.slog.Event
Attaches an exception to this event, including the full stack trace.
exceptionMessage(Throwable) - Method in interface io.github.merlimat.slog.Event
Attaches only the exception's message as an "exception" attribute, without the full stack trace.

G

get() - Static method in interface io.github.merlimat.slog.Handler
Returns the auto-discovered handler for the current classpath.
get() - Static method in class io.github.merlimat.slog.handler.HandlerDiscovery
Returns the auto-discovered handler singleton.
get(Class<?>) - Static method in class io.github.merlimat.slog.Logger
Creates a new structured logger named after the given class.
get(String) - Static method in class io.github.merlimat.slog.Logger
Creates a new structured logger with the given name.

H

handle(LogRecord) - Method in interface io.github.merlimat.slog.Handler
Processes a structured log record, emitting it to the underlying logging framework.
handle(LogRecord) - Method in class io.github.merlimat.slog.handler.Log4j2Handler
 
handle(LogRecord) - Method in class io.github.merlimat.slog.handler.Slf4jHandler
 
handle(LogRecord) - Method in class io.github.merlimat.slog.handler.Slf4jSimpleHandler
 
Handler - Interface in io.github.merlimat.slog
Backend interface for processing structured log records.
HandlerDiscovery - Class in io.github.merlimat.slog.handler
Auto-discovers the best available Handler implementation at startup.
hashCode() - Method in record class io.github.merlimat.slog.Attr
Returns a hash code value for this object.
hashCode() - Method in record class io.github.merlimat.slog.LogRecord
Returns a hash code value for this object.

I

info() - Method in class io.github.merlimat.slog.Logger
Returns a fluent INFO-level event builder.
info(String) - Method in class io.github.merlimat.slog.Logger
Logs a message at INFO level.
info(Consumer<Event>) - Method in class io.github.merlimat.slog.Logger
Passes an event builder to the given consumer at INFO level.
INFO - Enum constant in enum class io.github.merlimat.slog.Level
Informational messages highlighting progress of the application.
infof(String, Object...) - Method in class io.github.merlimat.slog.Logger
Logs a printf-formatted message at INFO level.
io.github.merlimat.slog - package io.github.merlimat.slog
 
io.github.merlimat.slog.handler - package io.github.merlimat.slog.handler
 
isEnabled(String, Level) - Method in interface io.github.merlimat.slog.Handler
Checks whether logging is enabled for the given logger name and level.
isEnabled(String, Level) - Method in class io.github.merlimat.slog.handler.Log4j2Handler
 
isEnabled(String, Level) - Method in class io.github.merlimat.slog.handler.Slf4jHandler
 
isEnabled(String, Level) - Method in class io.github.merlimat.slog.handler.Slf4jSimpleHandler
 

K

key() - Method in record class io.github.merlimat.slog.Attr
Returns the value of the key record component.

L

level() - Method in record class io.github.merlimat.slog.LogRecord
Returns the value of the level record component.
Level - Enum Class in io.github.merlimat.slog
Log severity levels, ordered from least to most severe.
log(String) - Method in interface io.github.merlimat.slog.Event
Emits the log event with the given message.
Log4j2Handler - Class in io.github.merlimat.slog.handler
Handler implementation that delegates to Log4j2.
Log4j2Handler() - Constructor for class io.github.merlimat.slog.handler.Log4j2Handler
Creates a new Log4j2 handler.
logf(String, Object...) - Method in interface io.github.merlimat.slog.Event
Emits the log event with a formatted message using Java's printf-style format specifiers (%s, %d, %f, etc.).
Logger - Class in io.github.merlimat.slog
A structured logger that emits log records with attached key-value attributes.
Logger.Builder - Class in io.github.merlimat.slog
A builder for constructing a child logger with multiple context attributes batched into a single chain node, avoiding intermediate Logger instances.
loggerName() - Method in record class io.github.merlimat.slog.LogRecord
Returns the value of the loggerName record component.
LogRecord - Record Class in io.github.merlimat.slog
An immutable snapshot of a structured log event, ready for emission by a Handler.
LogRecord(String, Level, String, Iterable<Attr>, Throwable, Instant, Duration, String) - Constructor for record class io.github.merlimat.slog.LogRecord
Creates an instance of a LogRecord record class.

M

message() - Method in record class io.github.merlimat.slog.LogRecord
Returns the value of the message record component.

O

of(String, Object) - Static method in record class io.github.merlimat.slog.Attr
Creates a new attribute with the given key and value.

S

Slf4jHandler - Class in io.github.merlimat.slog.handler
Handler implementation that delegates to SLF4J.
Slf4jHandler() - Constructor for class io.github.merlimat.slog.handler.Slf4jHandler
Creates a new SLF4J handler.
Slf4jSimpleHandler - Class in io.github.merlimat.slog.handler
Handler implementation for SLF4J Simple logger.
Slf4jSimpleHandler() - Constructor for class io.github.merlimat.slog.handler.Slf4jSimpleHandler
 

T

throwable() - Method in record class io.github.merlimat.slog.LogRecord
Returns the value of the throwable record component.
timed() - Method in interface io.github.merlimat.slog.Event
Starts a timer for this event.
timestamp() - Method in record class io.github.merlimat.slog.LogRecord
Returns the value of the timestamp record component.
toString() - Method in record class io.github.merlimat.slog.Attr
Returns a string representation of this record class.
toString() - Method in record class io.github.merlimat.slog.LogRecord
Returns a string representation of this record class.
trace() - Method in class io.github.merlimat.slog.Logger
Returns a fluent TRACE-level event builder.
trace(String) - Method in class io.github.merlimat.slog.Logger
Logs a message at TRACE level.
trace(Consumer<Event>) - Method in class io.github.merlimat.slog.Logger
Passes an event builder to the given consumer at TRACE level.
TRACE - Enum constant in enum class io.github.merlimat.slog.Level
Finest-grained informational events.
tracef(String, Object...) - Method in class io.github.merlimat.slog.Logger
Logs a printf-formatted message at TRACE level.

V

value() - Method in record class io.github.merlimat.slog.Attr
Returns the value of the value record component.
valueAsString() - Method in record class io.github.merlimat.slog.Attr
Returns the value as a string, using String.valueOf(Object).
valueOf(String) - Static method in enum class io.github.merlimat.slog.Level
Returns the enum constant of this class with the specified name.
values() - Static method in enum class io.github.merlimat.slog.Level
Returns an array containing the constants of this enum class, in the order they are declared.

W

warn() - Method in class io.github.merlimat.slog.Logger
Returns a fluent WARN-level event builder.
warn(String) - Method in class io.github.merlimat.slog.Logger
Logs a message at WARN level.
warn(Consumer<Event>) - Method in class io.github.merlimat.slog.Logger
Passes an event builder to the given consumer at WARN level.
WARN - Enum constant in enum class io.github.merlimat.slog.Level
Potentially harmful situations.
warnf(String, Object...) - Method in class io.github.merlimat.slog.Logger
Logs a printf-formatted message at WARN level.
with() - Method in class io.github.merlimat.slog.Logger
Returns a Logger.Builder for constructing a child logger with multiple context attributes in a single step.
A B C D E G H I K L M O S T V W 
All Classes and Interfaces|All Packages