- public bool get_debug_enabled ()
Return whether debug output from the GLib logging system is enabled.
- public void remove_handler (string? log_domain, uint handler_id)
Removes the log handler.
- public LogLevelFlags set_always_fatal (LogLevelFlags log_levels)
Sets the message levels which are always fatal, in any log domain.
- public void set_debug_enabled (bool enabled)
Enable or disable debug output from the GLib logging system for all domains.
- public void set_default_handler (LogFunc log_func)
Installs a default log handler which is used if no log handler has been set
for the particular log domain and log level combination.
- public LogLevelFlags set_fatal_mask (string log_domain, LogLevelFlags log_levels)
Sets the log levels which are fatal in the given domain.
- public uint set_handler (string? log_domain, LogLevelFlags log_levels, LogFunc log_func)
Sets the log handler for a domain and a set of log levels.
- public void set_handler_full (string? log_domain, LogLevelFlags log_levels, owned LogFunc log_func)
Like [func@GLib.
- public void set_writer_func (owned LogWriterFunc func)
Set a writer function which will be called to format and write out each log
message.
- public void writer_default_set_use_stderr (bool use_stderr)
Configure whether the built-in log functions will output all log messages to
`stderr`.
- public bool writer_default_would_drop (LogLevelFlags log_level, string log_domain)
Check whether [func@GLib.
- public string writer_format_fields (LogLevelFlags log_levels, LogField[] fields, bool use_color)
Format a structured log message as a string suitable for outputting to the
terminal (or elsewhere).
- public bool writer_is_journald (int output_fd)
Check whether the given output_fd
file descriptor is a
connection to the systemd journal, or something else (like a log file or `stdout` or `stderr`).
- public bool writer_supports_color (int output_fd)