1Glib::Log(3) User Contributed Perl Documentation Glib::Log(3)
2
3
4
6 Glib::Log - A flexible logging mechanism
7
9 scalar = Glib::Log->set_always_fatal ($fatal_mask)
10 · $fatal_mask (scalar)
11
12 Glib->critical ($domain, $message)
13 · $domain (string or undef)
14
15 · $message (string)
16
17 Glib->error ($domain, $message)
18 · $domain (string or undef)
19
20 · $message (string)
21
22 scalar = Glib::Log->set_fatal_mask ($log_domain, $fatal_mask)
23 · $log_domain (string)
24
25 · $fatal_mask (scalar)
26
27 integer = Glib::Log->set_handler ($log_domain, $log_levels, $log_func,
28 $user_data=undef)
29 · $log_domain (string or undef) name of the domain to handle with
30 this callback.
31
32 · $log_levels (Glib::LogLevelFlags) log levels to handle with this
33 callback
34
35 · $log_func (subroutine) handler function
36
37 · $user_data (scalar)
38
39 Glib->log ($log_domain, $log_level, $message)
40 · $log_domain (string or undef)
41
42 · $log_level (scalar)
43
44 · $message (string)
45
46 Glib->message ($domain, $message)
47 · $domain (string or undef)
48
49 · $message (string)
50
51 Glib::Log->remove_handler ($log_domain, $handler_id)
52 · $log_domain (string or undef)
53
54 · $handler_id (integer) as returned by "set_handler"
55
56 Glib->warning ($domain, $message)
57 · $domain (string or undef)
58
59 · $message (string)
60
62 flags Glib::LogLevelFlags
63 · 'recursion' / 'G_LOG_FLAG_RECURSION'
64
65 · 'fatal' / 'G_LOG_FLAG_FATAL'
66
67 · 'error' / 'G_LOG_LEVEL_ERROR'
68
69 · 'critical' / 'G_LOG_LEVEL_CRITICAL'
70
71 · 'warning' / 'G_LOG_LEVEL_WARNING'
72
73 · 'message' / 'G_LOG_LEVEL_MESSAGE'
74
75 · 'info' / 'G_LOG_LEVEL_INFO'
76
77 · 'debug' / 'G_LOG_LEVEL_DEBUG'
78
79 · 'fatal-mask' / 'G_LOG_FATAL_MASK'
80
82 Glib
83
85 Copyright (C) 2003-2009 by the gtk2-perl team.
86
87 This software is licensed under the LGPL. See Glib for a full notice.
88
89
90
91perl v5.12.1 2010-07-07 Glib::Log(3)