Logging Methods
Hive Logger provides convenient methods for each log level: trace, debug, info, warn, and
error.
All logging methods support flexible argument patterns for structured and formatted logging:
No Arguments
Logs an empty message at the specified level.
Attributes Only
Logs structured attributes without a message.
Message with Interpolation
Logs a formatted message, similar to printf-style formatting. Read more about it in the Message Formatting section.
Attributes and Message (with interpolation)
Logs structured attributes and a formatted message. The attributes can be anything object-like, including classes.
Message Formatting
The Hive Logger uses the
quick-format-unescaped library to format log
messages that include interpolation (e.g., placeholders like %s, %d, etc.).
Outputs:
Available interpolation placeholders are:
%s- string%dand%f- number with(out) decimals%i- integer number%o,%Oand%j- JSON stringified object%%- escaped percentage sign