GLibLogLogger
A LogLogger implementation that uses GLib's g_log
for logging.
This logger integrates with GLib's logging system and supports GLib log levels.
Key Features
Automatically enables
DEBUG
andINFO
log levels if the minimum priority is set belowMESSAGE
.Logs messages directly using
g_log
.Honors GLib's
G_MESSAGES_DEBUG
environment variable for enabling lower-level log messages.
Installation
This logger can be installed conditionally:
Use installOnDebuggableApp for debug builds.
Use installOnReleaseApp for release builds.
Use install to install for both debug and release builds.
Parameters
minPriority
The minimum log priority to log. Default is LogPriority.DEBUG. Setting it below LogPriority.MESSAGE will enable DEBUG
and INFO
levels.