TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.88.0
Generated with TypeDoc via ts-for-gir v4.0.0-beta.41
Since 2.50
Log a message with structured data.
The message will be passed through to the log writer set by the application using GLib.log_set_writer_func. If the message is fatal (i.e. its log level is GLib.LogLevelFlags.LEVEL_ERROR), the program will be aborted at the end of this function.
See GLib.log_structured for more documentation.
This assumes that log_level is already present in fields (typically as the PRIORITY field).
log_level
fields
PRIORITY
log level, either from GLib.LogLevelFlags, or a user-defined level
key–value pairs of structured data to add to the log message
2.50
Log a message with structured data.
The message will be passed through to the log writer set by the application using GLib.log_set_writer_func. If the message is fatal (i.e. its log level is GLib.LogLevelFlags.LEVEL_ERROR), the program will be aborted at the end of this function.
See GLib.log_structured for more documentation.
This assumes that
log_levelis already present infields(typically as thePRIORITYfield).