| 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>DB_ENV->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 DB_ENV Handle" /> |
| 11 | <link rel="prev" href="envset_tmp_dir.html" title="DB_ENV->set_tmp_dir()" /> |
| 12 | <link rel="next" href="envstat.html" title="DB_ENV->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">DB_ENV->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 DB_ENV 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>DB_ENV->set_verbose()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db.h> |
| 42 | |
| 43 | int |
| 44 | DB_ENV->set_verbose(DB_ENV *dbenv, u_int32_t which, int onoff); </pre> |
| 45 | <p> |
| 46 | The <code class="methodname">DB_ENV->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="DB_ENV->set_msgfile()">DB_ENV->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">DB_ENV->set_verbose()</code> method configures operations performed |
| 68 | using the specified <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a> handle, not all |
| 69 | operations performed on the underlying database environment. |
| 70 | </p> |
| 71 | <p> |
| 72 | The <code class="methodname">DB_ENV->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">DB_ENV->set_verbose()</code> <span> |
| 77 | <span> |
| 78 | method returns a non-zero error value on failure and 0 on success. |
| 79 | </span> |
| 80 | |
| 81 | </span> |
| 82 | </p> |
| 83 | <div class="sect2" lang="en" xml:lang="en"> |
| 84 | <div class="titlepage"> |
| 85 | <div> |
| 86 | <div> |
| 87 | <h3 class="title"><a id="idp52340800"></a>Parameters</h3> |
| 88 | </div> |
| 89 | </div> |
| 90 | </div> |
| 91 | <div class="sect3" lang="en" xml:lang="en"> |
| 92 | <div class="titlepage"> |
| 93 | <div> |
| 94 | <div> |
| 95 | <h4 class="title"><a id="idp52330920"></a>which</h4> |
| 96 | </div> |
| 97 | </div> |
| 98 | </div> |
| 99 | <p> |
| 100 | The <span class="bold"><strong>which</strong></span> parameter must be set to |
| 101 | one of the following values: |
| 102 | </p> |
| 103 | <div class="itemizedlist"> |
| 104 | <ul type="disc"> |
| 105 | <li> |
| 106 | <p><a id="set_verbose_DB_VERB_DEADLOCK"></a> |
| 107 | <code class="literal">DB_VERB_DEADLOCK</code> |
| 108 | </p> |
| 109 | <p> |
| 110 | Display additional information when doing deadlock detection. |
| 111 | </p> |
| 112 | </li> |
| 113 | <li> |
| 114 | <p><a id="set_verbose_DB_VERB_FILEOPS"></a> |
| 115 | <code class="literal">DB_VERB_FILEOPS</code> |
| 116 | </p> |
| 117 | <p> |
| 118 | Display additional information when performing filesystem operations |
| 119 | such as open, close or rename. May not be available on all platforms. |
| 120 | </p> |
| 121 | </li> |
| 122 | <li> |
| 123 | <p><a id="set_verbose_DB_VERB_FILEOPS_ALL"></a> |
| 124 | <code class="literal">DB_VERB_FILEOPS_ALL</code> |
| 125 | </p> |
| 126 | <p> |
| 127 | Display additional information when performing all filesystem |
| 128 | operations, including read and write. May not be available on all |
| 129 | platforms. |
| 130 | </p> |
| 131 | </li> |
| 132 | <li> |
| 133 | <p><a id="set_verbose_DB_VERB_RECOVERY"></a> |
| 134 | <code class="literal">DB_VERB_RECOVERY</code> |
| 135 | </p> |
| 136 | <p> |
| 137 | Display additional information when performing recovery. |
| 138 | </p> |
| 139 | </li> |
| 140 | <li> |
| 141 | <p><a id="set_verbose_DB_VERB_REGISTER"></a> |
| 142 | <code class="literal">DB_VERB_REGISTER</code> |
| 143 | </p> |
| 144 | <p> |
| 145 | Display additional information concerning support for the |
| 146 | <a class="link" href="envopen.html#envopen_DB_REGISTER">DB_REGISTER</a> flag to |
| 147 | the <a class="xref" href="envopen.html" title="DB_ENV->open()">DB_ENV->open()</a> |
| 148 | method. |
| 149 | </p> |
| 150 | </li> |
| 151 | <li> |
| 152 | <p><a id="set_verbose_DB_VERB_REPLICATION"></a> |
| 153 | <code class="literal">DB_VERB_REPLICATION</code> |
| 154 | </p> |
| 155 | <p> |
| 156 | Display all detailed information about replication. This includes the |
| 157 | information displayed by all of the other DB_VERB_REP_* and |
| 158 | DB_VERB_REPMGR_* values. |
| 159 | </p> |
| 160 | </li> |
| 161 | <li> |
| 162 | <p><a id="set_verbose_DB_VERB_REP_ELECT"></a> |
| 163 | <code class="literal">DB_VERB_REP_ELECT</code> |
| 164 | </p> |
| 165 | <p> |
| 166 | Display detailed information about replication elections. |
| 167 | </p> |
| 168 | </li> |
| 169 | <li> |
| 170 | <p><a id="set_verbose_DB_VERB_REP_LEASE"></a> |
| 171 | <code class="literal">DB_VERB_REP_LEASE</code> |
| 172 | </p> |
| 173 | <p> |
| 174 | Display detailed information about replication master leases. |
| 175 | </p> |
| 176 | </li> |
| 177 | <li> |
| 178 | <p><a id="set_verbose_DB_VERB_REP_MISC"></a> |
| 179 | <code class="literal">DB_VERB_REP_MISC</code> |
| 180 | </p> |
| 181 | <p> |
| 182 | Display detailed information about general replication processing not |
| 183 | covered by the other DB_VERB_REP_* values. |
| 184 | </p> |
| 185 | </li> |
| 186 | <li> |
| 187 | <p><a id="set_verbose_DB_VERB_REP_MSGS"></a> |
| 188 | <code class="literal">DB_VERB_REP_MSGS</code> |
| 189 | </p> |
| 190 | <p> |
| 191 | Display detailed information about replication message processing. |
| 192 | </p> |
| 193 | </li> |
| 194 | <li> |
| 195 | <p><a id="set_verbose_DB_VERB_REP_SYNC"></a> |
| 196 | <code class="literal">DB_VERB_REP_SYNC</code> |
| 197 | </p> |
| 198 | <p> |
| 199 | Display detailed information about replication client synchronization. |
| 200 | </p> |
| 201 | </li> |
| 202 | <li> |
| 203 | <p><a id="set_verbose_DB_VERB_REP_SYSTEM"></a> |
| 204 | <code class="literal">DB_VERB_REP_SYSTEM</code> |
| 205 | </p> |
| 206 | <p> |
| 207 | Saves replication system information to a system-owned file. This value is on by default. |
| 208 | </p> |
| 209 | </li> |
| 210 | <li> |
| 211 | <p><a id="set_verbose_DB_VERB_REPMGR_CONNFAIL"></a> |
| 212 | <code class="literal">DB_VERB_REPMGR_CONNFAIL</code> |
| 213 | </p> |
| 214 | <p> |
| 215 | Display detailed information about Replication Manager connection |
| 216 | failures. |
| 217 | </p> |
| 218 | </li> |
| 219 | <li> |
| 220 | <p><a id="set_verbose_DB_VERB_REPMGR_MISC"></a> |
| 221 | <code class="literal">DB_VERB_REPMGR_MISC</code> |
| 222 | </p> |
| 223 | <p> |
| 224 | Display detailed information about general Replication Manager |
| 225 | processing. |
| 226 | </p> |
| 227 | </li> |
| 228 | <li> |
| 229 | <p><a id="set_verbose_DB_VERB_WAITSFOR"></a> |
| 230 | <code class="literal">DB_VERB_WAITSFOR</code> |
| 231 | </p> |
| 232 | <p> |
| 233 | Display the waits-for table when doing deadlock detection. |
| 234 | </p> |
| 235 | </li> |
| 236 | </ul> |
| 237 | </div> |
| 238 | </div> |
| 239 | <div class="sect3" lang="en" xml:lang="en"> |
| 240 | <div class="titlepage"> |
| 241 | <div> |
| 242 | <div> |
| 243 | <h4 class="title"><a id="idp52352840"></a>onoff</h4> |
| 244 | </div> |
| 245 | </div> |
| 246 | </div> |
| 247 | <p> |
| 248 | If the <span class="bold"><strong>onoff</strong></span> parameter is set to |
| 249 | non-zero, the additional messages are output. |
| 250 | </p> |
| 251 | </div> |
| 252 | </div> |
| 253 | <div class="sect2" lang="en" xml:lang="en"> |
| 254 | <div class="titlepage"> |
| 255 | <div> |
| 256 | <div> |
| 257 | <h3 class="title"><a id="idp52310568"></a>Errors</h3> |
| 258 | </div> |
| 259 | </div> |
| 260 | </div> |
| 261 | <p> |
| 262 | The <code class="methodname">DB_ENV->set_verbose()</code> <span> |
| 263 | <span> |
| 264 | method may fail and return one of the following non-zero errors: |
| 265 | </span> |
| 266 | |
| 267 | </span> |
| 268 | </p> |
| 269 | <div class="sect3" lang="en" xml:lang="en"> |
| 270 | <div class="titlepage"> |
| 271 | <div> |
| 272 | <div> |
| 273 | <h4 class="title"><a id="idp52328336"></a>EINVAL</h4> |
| 274 | </div> |
| 275 | </div> |
| 276 | </div> |
| 277 | <p> |
| 278 | An invalid flag value or parameter was specified. |
| 279 | </p> |
| 280 | </div> |
| 281 | </div> |
| 282 | <div class="sect2" lang="en" xml:lang="en"> |
| 283 | <div class="titlepage"> |
| 284 | <div> |
| 285 | <div> |
| 286 | <h3 class="title"><a id="idp52331112"></a>Class</h3> |
| 287 | </div> |
| 288 | </div> |
| 289 | </div> |
| 290 | <p> |
| 291 | <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a> |
| 292 | </p> |
| 293 | </div> |
| 294 | <div class="sect2" lang="en" xml:lang="en"> |
| 295 | <div class="titlepage"> |
| 296 | <div> |
| 297 | <div> |
| 298 | <h3 class="title"><a id="idp52348704"></a>See Also</h3> |
| 299 | </div> |
| 300 | </div> |
| 301 | </div> |
| 302 | <p> |
| 303 | <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a> |
| 304 | </p> |
| 305 | </div> |
| 306 | </div> |
| 307 | <div class="navfooter"> |
| 308 | <hr /> |
| 309 | <table width="100%" summary="Navigation footer"> |
| 310 | <tr> |
| 311 | <td width="40%" align="left"><a accesskey="p" href="envset_tmp_dir.html">Prev</a> </td> |
| 312 | <td width="20%" align="center"> |
| 313 | <a accesskey="u" href="env.html">Up</a> |
| 314 | </td> |
| 315 | <td width="40%" align="right"> <a accesskey="n" href="envstat.html">Next</a></td> |
| 316 | </tr> |
| 317 | <tr> |
| 318 | <td width="40%" align="left" valign="top">DB_ENV->set_tmp_dir() </td> |
| 319 | <td width="20%" align="center"> |
| 320 | <a accesskey="h" href="index.html">Home</a> |
| 321 | </td> |
| 322 | <td width="40%" align="right" valign="top"> DB_ENV->stat_print()</td> |
| 323 | </tr> |
| 324 | </table> |
| 325 | </div> |
| 326 | </body> |
| 327 | </html> |