1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
<link rel="home" href="index.html" title="GNOME Online Accounts Reference Manual">
8
<link rel="up" href="ch07.html" title="Core">
9
<link rel="prev" href="ch07.html" title="Core">
10
<link rel="next" href="goa-Utilities.html" title="Utilities">
11
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="ch07.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="ch07.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">GNOME Online Accounts Reference Manual</th>
21
<td><a accesskey="n" href="goa-Utilities.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#goa-Logging.synopsis" class="shortcut">Top</a>
26
<a href="#goa-Logging.description" class="shortcut">Description</a>
29
<div class="refentry">
30
<a name="goa-Logging"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle"><a name="goa-Logging.top_of_page"></a>Logging</span></h2>
34
<p>Logging — Logging Routines</p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv">
39
<a name="goa-Logging.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis">enum <a class="link" href="goa-Logging.html#GoaLogLevel" title="enum GoaLogLevel">GoaLogLevel</a>;
41
<span class="returnvalue">void</span> <a class="link" href="goa-Logging.html#goa-log" title="goa_log ()">goa_log</a> (<em class="parameter"><code><a class="link" href="goa-Logging.html#GoaLogLevel" title="enum GoaLogLevel"><span class="type">GoaLogLevel</span></a> level</code></em>,
42
<em class="parameter"><code>const <span class="type">gchar</span> *function</code></em>,
43
<em class="parameter"><code>const <span class="type">gchar</span> *location</code></em>,
44
<em class="parameter"><code>const <span class="type">gchar</span> *format</code></em>,
45
<em class="parameter"><code>...</code></em>);
47
#define <a class="link" href="goa-Logging.html#goa-debug" title="goa_debug()">goa_debug</a> (...)
48
#define <a class="link" href="goa-Logging.html#goa-info" title="goa_info()">goa_info</a> (...)
49
#define <a class="link" href="goa-Logging.html#goa-notice" title="goa_notice()">goa_notice</a> (...)
50
#define <a class="link" href="goa-Logging.html#goa-warning" title="goa_warning()">goa_warning</a> (...)
51
#define <a class="link" href="goa-Logging.html#goa-error" title="goa_error()">goa_error</a> (...)
54
<div class="refsect1">
55
<a name="goa-Logging.description"></a><h2>Description</h2>
57
TODO: explain a bit more what these logging routines do - e.g. that
58
<a class="link" href="goa-Logging.html#GOA-LOG-LEVEL-NOTICE:CAPS"><code class="literal">GOA_LOG_LEVEL_NOTICE</code></a> and higher goes to the syslog and so on
62
<div class="refsect1">
63
<a name="goa-Logging.details"></a><h2>Details</h2>
64
<div class="refsect2">
65
<a name="GoaLogLevel"></a><h3>enum GoaLogLevel</h3>
66
<pre class="programlisting">typedef enum {
70
GOA_LOG_LEVEL_WARNING,
77
<div class="variablelist"><table border="0" class="variablelist">
79
<col align="left" valign="top">
84
<td><p><a name="GOA-LOG-LEVEL-DEBUG:CAPS"></a><span class="term"><code class="literal">GOA_LOG_LEVEL_DEBUG</code></span></p></td>
89
<td><p><a name="GOA-LOG-LEVEL-INFO:CAPS"></a><span class="term"><code class="literal">GOA_LOG_LEVEL_INFO</code></span></p></td>
90
<td>Informational messages.
94
<td><p><a name="GOA-LOG-LEVEL-NOTICE:CAPS"></a><span class="term"><code class="literal">GOA_LOG_LEVEL_NOTICE</code></span></p></td>
95
<td>Messages that the administrator should take notice of.
99
<td><p><a name="GOA-LOG-LEVEL-WARNING:CAPS"></a><span class="term"><code class="literal">GOA_LOG_LEVEL_WARNING</code></span></p></td>
100
<td>Warning messages.
104
<td><p><a name="GOA-LOG-LEVEL-ERROR:CAPS"></a><span class="term"><code class="literal">GOA_LOG_LEVEL_ERROR</code></span></p></td>
112
<div class="refsect2">
113
<a name="goa-log"></a><h3>goa_log ()</h3>
114
<pre class="programlisting"><span class="returnvalue">void</span> goa_log (<em class="parameter"><code><a class="link" href="goa-Logging.html#GoaLogLevel" title="enum GoaLogLevel"><span class="type">GoaLogLevel</span></a> level</code></em>,
115
<em class="parameter"><code>const <span class="type">gchar</span> *function</code></em>,
116
<em class="parameter"><code>const <span class="type">gchar</span> *location</code></em>,
117
<em class="parameter"><code>const <span class="type">gchar</span> *format</code></em>,
118
<em class="parameter"><code>...</code></em>);</pre>
120
Low-level logging function used by <a class="link" href="goa-Logging.html#goa-debug" title="goa_debug()"><code class="function">goa_debug()</code></a> and other macros.
122
<div class="variablelist"><table border="0" class="variablelist">
124
<col align="left" valign="top">
129
<td><p><span class="term"><em class="parameter"><code>level</code></em> :</span></p></td>
130
<td>A <a class="link" href="goa-Logging.html#GoaLogLevel" title="enum GoaLogLevel"><span class="type">GoaLogLevel</span></a>.</td>
133
<td><p><span class="term"><em class="parameter"><code>function</code></em> :</span></p></td>
134
<td>Pass <span class="type">G_STRFUNC</span> here.</td>
137
<td><p><span class="term"><em class="parameter"><code>location</code></em> :</span></p></td>
138
<td>Pass <span class="type">G_STRLOC</span> here.</td>
141
<td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
142
<td>printf()-style format.</td>
145
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
146
<td>Arguments for format.</td>
152
<div class="refsect2">
153
<a name="goa-debug"></a><h3>goa_debug()</h3>
154
<pre class="programlisting">#define goa_debug(...) goa_log(GOA_LOG_LEVEL_DEBUG, G_STRFUNC, G_STRLOC, __VA_ARGS__);
157
Logging macro for <a class="link" href="goa-Logging.html#GOA-LOG-LEVEL-DEBUG:CAPS"><code class="literal">GOA_LOG_LEVEL_DEBUG</code></a>.
159
<div class="variablelist"><table border="0" class="variablelist">
161
<col align="left" valign="top">
165
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
166
<td>printf()-style format string and arguments</td>
171
<div class="refsect2">
172
<a name="goa-info"></a><h3>goa_info()</h3>
173
<pre class="programlisting">#define goa_info(...) goa_log(GOA_LOG_LEVEL_INFO, G_STRFUNC, G_STRLOC, __VA_ARGS__);
176
Logging macro for <a class="link" href="goa-Logging.html#GOA-LOG-LEVEL-INFO:CAPS"><code class="literal">GOA_LOG_LEVEL_INFO</code></a>.
178
<div class="variablelist"><table border="0" class="variablelist">
180
<col align="left" valign="top">
184
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
185
<td>printf()-style format string and arguments</td>
190
<div class="refsect2">
191
<a name="goa-notice"></a><h3>goa_notice()</h3>
192
<pre class="programlisting">#define goa_notice(...) goa_log(GOA_LOG_LEVEL_NOTICE, G_STRFUNC, G_STRLOC, __VA_ARGS__);
195
Logging macro for <a class="link" href="goa-Logging.html#GOA-LOG-LEVEL-NOTICE:CAPS"><code class="literal">GOA_LOG_LEVEL_NOTICE</code></a>.
197
<div class="variablelist"><table border="0" class="variablelist">
199
<col align="left" valign="top">
203
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
204
<td>printf()-style format string and arguments</td>
209
<div class="refsect2">
210
<a name="goa-warning"></a><h3>goa_warning()</h3>
211
<pre class="programlisting">#define goa_warning(...) goa_log(GOA_LOG_LEVEL_WARNING, G_STRFUNC, G_STRLOC, __VA_ARGS__);
214
Logging macro for <a class="link" href="goa-Logging.html#GOA-LOG-LEVEL-WARNING:CAPS"><code class="literal">GOA_LOG_LEVEL_WARNING</code></a>.
216
<div class="variablelist"><table border="0" class="variablelist">
218
<col align="left" valign="top">
222
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
223
<td>printf()-style format string and arguments</td>
228
<div class="refsect2">
229
<a name="goa-error"></a><h3>goa_error()</h3>
230
<pre class="programlisting">#define goa_error(...) goa_log(GOA_LOG_LEVEL_ERROR, G_STRFUNC, G_STRLOC, __VA_ARGS__);
233
Logging macro for <a class="link" href="goa-Logging.html#GOA-LOG-LEVEL-ERROR:CAPS"><code class="literal">GOA_LOG_LEVEL_ERROR</code></a>.
235
<div class="variablelist"><table border="0" class="variablelist">
237
<col align="left" valign="top">
241
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
242
<td>printf()-style format string and arguments</td>
250
Generated by GTK-Doc V1.19</div>
b'\\ No newline at end of file'