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.76.1">
7 <link rel="home" href="index.html" title="gsignond API Reference Manual">
8 <link rel="up" href="ch06.html" title="Miscellaneous">
9 <link rel="prev" href="gsignond-Errors.html" title="Errors">
10 <link rel="next" href="gsignond-Utility-functions.html" title="Utility functions">
11 <meta name="generator" content="GTK-Doc V1.19.1 (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="10"><tr valign="middle">
16 <td width="100%" align="left">
17 <a href="#" class="shortcut">Top</a>
19 <a href="#gsignond-Logging.description" class="shortcut">Description</a>
21 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22 <td><a accesskey="u" href="ch06.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23 <td><a accesskey="p" href="gsignond-Errors.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24 <td><a accesskey="n" href="gsignond-Utility-functions.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26 <div class="refentry">
27 <a name="gsignond-Logging"></a><div class="titlepage"></div>
28 <div class="refnamediv"><table width="100%"><tr>
30 <h2><span class="refentrytitle"><a name="gsignond-Logging.top_of_page"></a>Logging</span></h2>
31 <p>Logging — logging facilities</p>
33 <td valign="top" align="right"></td>
35 <div class="refsynopsisdiv">
36 <a name="gsignond-Logging.synopsis"></a><h2>Synopsis</h2>
37 <pre class="synopsis">
38 #include <gsignond/gsignond-log.h>
40 #define <a class="link" href="gsignond-Logging.html#DBG:CAPS" title="DBG()">DBG</a> (frmt,
42 #define <a class="link" href="gsignond-Logging.html#ERR:CAPS" title="ERR()">ERR</a> (frmt,
44 #define <a class="link" href="gsignond-Logging.html#INFO:CAPS" title="INFO()">INFO</a> (frmt,
46 #define <a class="link" href="gsignond-Logging.html#TRACEBACK:CAPS" title="TRACEBACK">TRACEBACK</a>
47 #define <a class="link" href="gsignond-Logging.html#WARN:CAPS" title="WARN()">WARN</a> (frmt,
51 <div class="refsect1">
52 <a name="gsignond-Logging.description"></a><h2>Description</h2>
54 <code class="filename">gsignond/gsignond-log.h</code> file contains logging macros
55 that plugins and extensions should use for debugging and tracing.
60 <div class="informalexample">
61 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
64 <td class="listing_lines" align="right"><pre>1</pre></td>
65 <td class="listing_code"><pre class="programlisting">INFO(<span class="number">"Plugin </span><span class="symbol">%s</span><span class="number"> initialized"</span>, plugin_mechanism);</pre></td>
74 <div class="refsect1">
75 <a name="gsignond-Logging.details"></a><h2>Details</h2>
76 <div class="refsect2">
77 <a name="DBG:CAPS"></a><h3>DBG()</h3>
78 <pre class="programlisting">#define DBG(frmt, args...)</pre>
80 Use this macro to log debug messages. GSignond will take care of
81 correctly saving them.
83 <div class="variablelist"><table border="0">
84 <col align="left" valign="top">
87 <td><p><span class="term"><em class="parameter"><code>frmt</code></em> :</span></p></td>
88 <td>format string for the message</td>
91 <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
92 <td>arguments for the format string</td>
98 <div class="refsect2">
99 <a name="ERR:CAPS"></a><h3>ERR()</h3>
100 <pre class="programlisting">#define ERR(frmt, args...)</pre>
102 Use this macro to log error messages. GSignond will take care of
103 correctly saving them.
105 <div class="variablelist"><table border="0">
106 <col align="left" valign="top">
109 <td><p><span class="term"><em class="parameter"><code>frmt</code></em> :</span></p></td>
110 <td>format string for the message</td>
113 <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
114 <td>arguments for the format string</td>
120 <div class="refsect2">
121 <a name="INFO:CAPS"></a><h3>INFO()</h3>
122 <pre class="programlisting">#define INFO(frmt, args...)</pre>
124 Use this macro to log informational messages. GSignond will take care of
125 correctly saving them.
127 <div class="variablelist"><table border="0">
128 <col align="left" valign="top">
131 <td><p><span class="term"><em class="parameter"><code>frmt</code></em> :</span></p></td>
132 <td>format string for the message</td>
135 <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
136 <td>arguments for the format string</td>
142 <div class="refsect2">
143 <a name="TRACEBACK:CAPS"></a><h3>TRACEBACK</h3>
144 <pre class="programlisting">#define TRACEBACK()</pre>
146 This macro prints the current function call stack to stderr.
150 <div class="refsect2">
151 <a name="WARN:CAPS"></a><h3>WARN()</h3>
152 <pre class="programlisting">#define WARN(frmt, args...)</pre>
154 Use this macro to log warning messages. GSignond will take care of
155 correctly saving them.
157 <div class="variablelist"><table border="0">
158 <col align="left" valign="top">
161 <td><p><span class="term"><em class="parameter"><code>frmt</code></em> :</span></p></td>
162 <td>format string for the message</td>
165 <td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
166 <td>arguments for the format string</td>
175 Generated by GTK-Doc V1.19.1</div>