mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 12:55:48 +01:00
updated a bit more.
2000-06-11 Damon Chaplin <damon@helixcode.com> * tmpl/messages.sgml: updated a bit more.
This commit is contained in:
parent
2c4d8d1ae2
commit
876a6767eb
@ -1,3 +1,7 @@
|
|||||||
|
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
||||||
|
|
||||||
|
* tmpl/messages.sgml: updated a bit more.
|
||||||
|
|
||||||
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
||||||
|
|
||||||
* tmpl/messages.sgml: updated a few bits about log handlers & flags.
|
* tmpl/messages.sgml: updated a few bits about log handlers & flags.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
||||||
|
|
||||||
|
* tmpl/messages.sgml: updated a bit more.
|
||||||
|
|
||||||
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
2000-06-11 Damon Chaplin <damon@helixcode.com>
|
||||||
|
|
||||||
* tmpl/messages.sgml: updated a few bits about log handlers & flags.
|
* tmpl/messages.sgml: updated a few bits about log handlers & flags.
|
||||||
|
@ -154,8 +154,13 @@ documentation.
|
|||||||
<!-- ##### FUNCTION g_log_set_handler ##### -->
|
<!-- ##### FUNCTION g_log_set_handler ##### -->
|
||||||
<para>
|
<para>
|
||||||
Sets the log handler for a domain and a set of log levels.
|
Sets the log handler for a domain and a set of log levels.
|
||||||
Note that to handle fatal and recursive messages the @log_levels parameter
|
To handle fatal and recursive messages the @log_levels parameter
|
||||||
must be combined with the G_LOG_FLAG_FATAL and G_LOG_FLAG_RECURSIVE bit flags.
|
must be combined with the G_LOG_FLAG_FATAL and G_LOG_FLAG_RECURSIVE bit flags.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Note that since the G_LOG_LEVEL_ERROR log level is always fatal, if you want
|
||||||
|
to set a handler for this log level you must combine it with G_LOG_FLAG_FATAL.
|
||||||
|
</para>
|
||||||
|
|
||||||
<example>
|
<example>
|
||||||
<title>Adding a log handler for all warning messages</title>
|
<title>Adding a log handler for all warning messages</title>
|
||||||
@ -168,8 +173,8 @@ must be combined with the G_LOG_FLAG_FATAL and G_LOG_FLAG_RECURSIVE bit flags.
|
|||||||
|
|
||||||
@log_domain: the log domain, or NULL for the default "" application domain.
|
@log_domain: the log domain, or NULL for the default "" application domain.
|
||||||
@log_levels: the log levels to apply the log handler for. To handle fatal
|
@log_levels: the log levels to apply the log handler for. To handle fatal
|
||||||
and recursive messages as well, comine the log levels with the G_LOG_FLAG_FATAL
|
and recursive messages as well, combine the log levels with the
|
||||||
and G_LOG_FLAG_RECURSIVE bit flags.
|
G_LOG_FLAG_FATAL and G_LOG_FLAG_RECURSIVE bit flags.
|
||||||
@log_func: the log handler function.
|
@log_func: the log handler function.
|
||||||
@user_data: data passed to the log handler.
|
@user_data: data passed to the log handler.
|
||||||
@Returns: the id of the new handler.
|
@Returns: the id of the new handler.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user