Debug
Object Hierarchy:
Description:
public class Debug : Object
Manages debug output and status reporting for all folks objects.
All GLib debug logging calls are passed through a log handler in this class, which allows debug domains to be outputted according to
whether they've been enabled by being passed to Debug.dup.
Since:
0.5.1
Content:
Constants:
Properties:
Static methods:
- public static Debug dup ()
Create or return the singleton Folks.Debug
class instance. If the instance doesn't exist already, it will be created with no debug domains enabled.
- public static Debug dup_with_flags (string? debug_flags, bool colour_enabled)
Create or return the singleton Folks.Debug
class instance. If the instance doesn't exist already, it will be created with the given set of debug domains enabled. Otherwise, the
existing instance will have its set of enabled domains changed to the provided set.
Methods:
- public void emit_print_status ()
Causes all significant objects in the library to print their current
status to standard output, obeying the options set on this Folks.Debug instance for colouring and other
formatting.
- public void indent ()
Increment the indentation level used when printing output through the
object.
- public void unindent ()
Decrement the indentation level used when printing output through the
object.
- public void print_line (string domain, LogLevelFlags level, string format, ...)
Print a debug line with the current indentation level for the
specified debug domain.
- public void print_heading (string domain, LogLevelFlags level, string format, ...)
Print a debug line as a heading. It will be coloured according to the
current indentation level so that different levels of headings stand out.
- public void print_key_value_pairs (string domain, LogLevelFlags level, ...)
Print a set of key–value pairs in a table. The width of the key
column is automatically set to the width of the longest key. The keys and values must be provided as a null-delimited list of
alternating key–value varargs. Values may be null but keys may not.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count