summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-06-11 18:32:13 +0000
committerDamon Chaplin <damon@src.gnome.org>2000-06-11 18:32:13 +0000
commit876a6767eb690040cefb61a4c2a7822daecd4b8e (patch)
tree43f7d65d90abed1c719a2029ffc88c2f731abd3b /docs
parent2c4d8d1ae22515cbf1a5fdb48cbe1f90d13d5a3f (diff)
downloadglib-876a6767eb690040cefb61a4c2a7822daecd4b8e.tar.gz
updated a bit more.
2000-06-11 Damon Chaplin <damon@helixcode.com> * tmpl/messages.sgml: updated a bit more.
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/ChangeLog4
-rw-r--r--docs/reference/glib/glib/ChangeLog4
-rw-r--r--docs/reference/glib/tmpl/messages.sgml11
3 files changed, 16 insertions, 3 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog
index cfad12bd0..a4c80f544 100644
--- a/docs/reference/ChangeLog
+++ b/docs/reference/ChangeLog
@@ -1,5 +1,9 @@
2000-06-11 Damon Chaplin <damon@helixcode.com>
+ * tmpl/messages.sgml: updated a bit more.
+
+2000-06-11 Damon Chaplin <damon@helixcode.com>
+
* tmpl/messages.sgml: updated a few bits about log handlers & flags.
2000-04-16 Damon Chaplin <damon@helixcode.com>
diff --git a/docs/reference/glib/glib/ChangeLog b/docs/reference/glib/glib/ChangeLog
index cfad12bd0..a4c80f544 100644
--- a/docs/reference/glib/glib/ChangeLog
+++ b/docs/reference/glib/glib/ChangeLog
@@ -1,5 +1,9 @@
2000-06-11 Damon Chaplin <damon@helixcode.com>
+ * tmpl/messages.sgml: updated a bit more.
+
+2000-06-11 Damon Chaplin <damon@helixcode.com>
+
* tmpl/messages.sgml: updated a few bits about log handlers & flags.
2000-04-16 Damon Chaplin <damon@helixcode.com>
diff --git a/docs/reference/glib/tmpl/messages.sgml b/docs/reference/glib/tmpl/messages.sgml
index 5fd382d9c..743a1b4dc 100644
--- a/docs/reference/glib/tmpl/messages.sgml
+++ b/docs/reference/glib/tmpl/messages.sgml
@@ -154,8 +154,13 @@ documentation.
<!-- ##### FUNCTION g_log_set_handler ##### -->
<para>
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.
+</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>
<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_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 G_LOG_FLAG_RECURSIVE bit flags.
+and recursive messages as well, combine the log levels with the
+G_LOG_FLAG_FATAL and G_LOG_FLAG_RECURSIVE bit flags.
@log_func: the log handler function.
@user_data: data passed to the log handler.
@Returns: the id of the new handler.