Debian Codegraph @

docs/api_reference/CXX/envset_verbose.html

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <title>DbEnv::set_verbose()</title>
7 <link rel="stylesheet" href="apiReference.css" type="text/css" />
8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9 <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" />
10 <link rel="up" href="env.html" title="Chapter 5.  The DbEnv Handle" />
11 <link rel="prev" href="envset_tmp_dir.html" title="DbEnv::set_tmp_dir()" />
12 <link rel="next" href="envstat.html" title="DbEnv::stat_print()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DbEnv::set_verbose()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envset_tmp_dir.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 5. 
26 The DbEnv Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="envstat.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="envset_verbose"></a>DbEnv::set_verbose()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::set_verbose(u_int32_t which, int onoff); </pre>
45 <p>
46 The <code class="methodname">DbEnv::set_verbose()</code> method turns specific additional
47 informational and debugging messages in the Berkeley DB message output
48 on and off. To see the additional messages, verbose messages must
49 also be configured for the application. For more information on
50 verbose messages, see the <a class="xref" href="envset_msgfile.html" title="DbEnv::set_msgfile()">DbEnv::set_msgfile()</a>
51 method.
52 </p>
53 <p>
54 The database environment's messages may also be configured using
55 the environment's <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file. The syntax of the entry in
56 that file is a single line with the string "set_verbose", one or
57 more whitespace characters, and the method
58 <span class="bold"><strong>which</strong></span> parameter as a string and
59 optionally one or more whitespace characters, and the string "on"
60 or "off". If the optional string is omitted, the default is "on";
61 for example, "set_verbose DB_VERB_RECOVERY" or "set_verbose
62 DB_VERB_RECOVERY on". Because the <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> file is read when
63 the database environment is opened, it will silently overrule
64 configuration done before that time.
65 </p>
66 <p>
67 The <code class="methodname">DbEnv::set_verbose()</code> method configures operations performed
68 using the specified <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a> handle, not all
69 operations performed on the underlying database environment.
70 </p>
71 <p>
72 The <code class="methodname">DbEnv::set_verbose()</code> method may be called at any time during the
73 life of the application.
74 </p>
75 <p>
76 The <code class="methodname">DbEnv::set_verbose()</code> <span>
77
78 <span>
79 method either returns a non-zero error value or throws an
80 exception that encapsulates a non-zero error value on
81 failure, and returns 0 on success.
82 </span>
83 </span>
84 </p>
85 <div class="sect2" lang="en" xml:lang="en">
86 <div class="titlepage">
87 <div>
88 <div>
89 <h3 class="title"><a id="idp7713944"></a>Parameters</h3>
90 </div>
91 </div>
92 </div>
93 <div class="sect3" lang="en" xml:lang="en">
94 <div class="titlepage">
95 <div>
96 <div>
97 <h4 class="title"><a id="idp7713792"></a>which</h4>
98 </div>
99 </div>
100 </div>
101 <p>
102 The <span class="bold"><strong>which</strong></span> parameter must be set to
103 one of the following values:
104 </p>
105 <div class="itemizedlist">
106 <ul type="disc">
107 <li>
108 <p><a id="set_verbose_DB_VERB_DEADLOCK"></a>
109 <code class="literal">DB_VERB_DEADLOCK</code>
110 </p>
111 <p>
112 Display additional information when doing deadlock detection.
113 </p>
114 </li>
115 <li>
116 <p><a id="set_verbose_DB_VERB_FILEOPS"></a>
117 <code class="literal">DB_VERB_FILEOPS</code>
118 </p>
119 <p>
120 Display additional information when performing filesystem operations
121 such as open, close or rename. May not be available on all platforms.
122 </p>
123 </li>
124 <li>
125 <p><a id="set_verbose_DB_VERB_FILEOPS_ALL"></a>
126 <code class="literal">DB_VERB_FILEOPS_ALL</code>
127 </p>
128 <p>
129 Display additional information when performing all filesystem
130 operations, including read and write. May not be available on all
131 platforms.
132 </p>
133 </li>
134 <li>
135 <p><a id="set_verbose_DB_VERB_RECOVERY"></a>
136 <code class="literal">DB_VERB_RECOVERY</code>
137 </p>
138 <p>
139 Display additional information when performing recovery.
140 </p>
141 </li>
142 <li>
143 <p><a id="set_verbose_DB_VERB_REGISTER"></a>
144 <code class="literal">DB_VERB_REGISTER</code>
145 </p>
146 <p>
147 Display additional information concerning support for the
148 <a class="link" href="envopen.html#envopen_DB_REGISTER">DB_REGISTER</a> flag to
149 the <a class="xref" href="envopen.html" title="DbEnv::open()">DbEnv::open()</a>
150 method.
151 </p>
152 </li>
153 <li>
154 <p><a id="set_verbose_DB_VERB_REPLICATION"></a>
155 <code class="literal">DB_VERB_REPLICATION</code>
156 </p>
157 <p>
158 Display all detailed information about replication. This includes the
159 information displayed by all of the other DB_VERB_REP_* and
160 DB_VERB_REPMGR_* values.
161 </p>
162 </li>
163 <li>
164 <p><a id="set_verbose_DB_VERB_REP_ELECT"></a>
165 <code class="literal">DB_VERB_REP_ELECT</code>
166 </p>
167 <p>
168 Display detailed information about replication elections.
169 </p>
170 </li>
171 <li>
172 <p><a id="set_verbose_DB_VERB_REP_LEASE"></a>
173 <code class="literal">DB_VERB_REP_LEASE</code>
174 </p>
175 <p>
176 Display detailed information about replication master leases.
177 </p>
178 </li>
179 <li>
180 <p><a id="set_verbose_DB_VERB_REP_MISC"></a>
181 <code class="literal">DB_VERB_REP_MISC</code>
182 </p>
183 <p>
184 Display detailed information about general replication processing not
185 covered by the other DB_VERB_REP_* values.
186 </p>
187 </li>
188 <li>
189 <p><a id="set_verbose_DB_VERB_REP_MSGS"></a>
190 <code class="literal">DB_VERB_REP_MSGS</code>
191 </p>
192 <p>
193 Display detailed information about replication message processing.
194 </p>
195 </li>
196 <li>
197 <p><a id="set_verbose_DB_VERB_REP_SYNC"></a>
198 <code class="literal">DB_VERB_REP_SYNC</code>
199 </p>
200 <p>
201 Display detailed information about replication client synchronization.
202 </p>
203 </li>
204 <li>
205 <p><a id="set_verbose_DB_VERB_REP_SYSTEM"></a>
206 <code class="literal">DB_VERB_REP_SYSTEM</code>
207 </p>
208 <p>
209 Saves replication system information to a system-owned file. This value is on by default.
210 </p>
211 </li>
212 <li>
213 <p><a id="set_verbose_DB_VERB_REPMGR_CONNFAIL"></a>
214 <code class="literal">DB_VERB_REPMGR_CONNFAIL</code>
215 </p>
216 <p>
217 Display detailed information about Replication Manager connection
218 failures.
219 </p>
220 </li>
221 <li>
222 <p><a id="set_verbose_DB_VERB_REPMGR_MISC"></a>
223 <code class="literal">DB_VERB_REPMGR_MISC</code>
224 </p>
225 <p>
226 Display detailed information about general Replication Manager
227 processing.
228 </p>
229 </li>
230 <li>
231 <p><a id="set_verbose_DB_VERB_WAITSFOR"></a>
232 <code class="literal">DB_VERB_WAITSFOR</code>
233 </p>
234 <p>
235 Display the waits-for table when doing deadlock detection.
236 </p>
237 </li>
238 </ul>
239 </div>
240 </div>
241 <div class="sect3" lang="en" xml:lang="en">
242 <div class="titlepage">
243 <div>
244 <div>
245 <h4 class="title"><a id="idp7723656"></a>onoff</h4>
246 </div>
247 </div>
248 </div>
249 <p>
250 If the <span class="bold"><strong>onoff</strong></span> parameter is set to
251 non-zero, the additional messages are output.
252 </p>
253 </div>
254 </div>
255 <div class="sect2" lang="en" xml:lang="en">
256 <div class="titlepage">
257 <div>
258 <div>
259 <h3 class="title"><a id="idp7697208"></a>Errors</h3>
260 </div>
261 </div>
262 </div>
263 <p>
264 The <code class="methodname">DbEnv::set_verbose()</code> <span>
265
266 <span>
267 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
268 exception, encapsulating one of the following non-zero errors, or return one
269 of the following non-zero errors:
270 </span>
271 </span>
272 </p>
273 <div class="sect3" lang="en" xml:lang="en">
274 <div class="titlepage">
275 <div>
276 <div>
277 <h4 class="title"><a id="idp7736392"></a>EINVAL</h4>
278 </div>
279 </div>
280 </div>
281 <p>
282 An invalid flag value or parameter was specified.
283 </p>
284 </div>
285 </div>
286 <div class="sect2" lang="en" xml:lang="en">
287 <div class="titlepage">
288 <div>
289 <div>
290 <h3 class="title"><a id="idp7729456"></a>Class</h3>
291 </div>
292 </div>
293 </div>
294 <p>
295 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>
296 </p>
297 </div>
298 <div class="sect2" lang="en" xml:lang="en">
299 <div class="titlepage">
300 <div>
301 <div>
302 <h3 class="title"><a id="idp7737624"></a>See Also</h3>
303 </div>
304 </div>
305 </div>
306 <p>
307 <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a>
308 </p>
309 </div>
310 </div>
311 <div class="navfooter">
312 <hr />
313 <table width="100%" summary="Navigation footer">
314 <tr>
315 <td width="40%" align="left"><a accesskey="p" href="envset_tmp_dir.html">Prev</a> </td>
316 <td width="20%" align="center">
317 <a accesskey="u" href="env.html">Up</a>
318 </td>
319 <td width="40%" align="right"> <a accesskey="n" href="envstat.html">Next</a></td>
320 </tr>
321 <tr>
322 <td width="40%" align="left" valign="top">DbEnv::set_tmp_dir() </td>
323 <td width="20%" align="center">
324 <a accesskey="h" href="index.html">Home</a>
325 </td>
326 <td width="40%" align="right" valign="top"> DbEnv::stat_print()</td>
327 </tr>
328 </table>
329 </div>
330 </body>
331 </html>