1<!--$Id: env_set_verbose.so,v 10.56 2008/01/19 14:12:57 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB: DB_ENV->set_verbose</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<table width="100%"><tr valign=top> 12<td> 13<b>DB_ENV->set_verbose</b> 14</td> 15<td align=right> 16<a href="../api_c/api_core.html"><img src="../images/api.gif" alt="API"></a> 17<a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a></td> 18</tr></table> 19<hr size=1 noshade> 20<tt> 21<b><pre> 22#include <db.h> 23<p> 24int 25DB_ENV->set_verbose(DB_ENV *dbenv, u_int32_t which, int onoff); 26<p> 27int 28DB_ENV->get_verbose(DB_ENV *dbenv, u_int32_t which, int *onoffp); 29</pre></b> 30<hr size=1 noshade> 31<b>Description: DB_ENV->set_verbose</b> 32<p>The DB_ENV->set_verbose method turns specific additional informational 33and debugging messages in the Berkeley DB message output on and off. To see 34the additional messages, verbose messages must also be configured for 35the application. For more information on verbose messages, see the 36<a href="../api_c/env_set_msgfile.html">DB_ENV->set_msgfile</a> method.</p> 37<p>The database environment's messages may also be configured using the 38environment's <a href="../ref/env/db_config.html#DB_CONFIG">DB_CONFIG</a> file. The syntax of the entry in that 39file is a single line with the string "set_verbose", one or more whitespace 40characters, and the method <b>which</b> parameter as a string; for example, 41"set_verbose DB_VERB_RECOVERY". 42Because the <a href="../ref/env/db_config.html#DB_CONFIG">DB_CONFIG</a> file is read when the database environment 43is opened, it will silently overrule configuration done before that 44time.</p> 45<p>The DB_ENV->set_verbose method configures operations performed using the specified 46<a href="../api_c/env_class.html">DB_ENV</a> handle, not all operations performed on the underlying 47database environment.</p> 48<p>The DB_ENV->set_verbose method may be called at any time during the life of the 49application.</p> 50<p>The DB_ENV->set_verbose method 51returns a non-zero error value on failure 52and 0 on success. 53</p> 54<b>Parameters</b> <br> 55 <b>onoff</b><ul compact><li>If the <b>onoff</b> parameter is set to non-zero, the additional 56messages are output.</ul> 57 <b>which</b><ul compact><li>The <b>which</b> parameter must be set to one of the following values: 58<br> 59<b><a name="DB_VERB_DEADLOCK">DB_VERB_DEADLOCK</a></b><ul compact><li>Display additional information when doing deadlock detection.</ul> 60<b><a name="DB_VERB_FILEOPS">DB_VERB_FILEOPS</a></b><ul compact><li>Display additional information when performing filesystem operations 61such as open, close or rename. May not be available on all platforms.</ul> 62<b><a name="DB_VERB_FILEOPS_ALL">DB_VERB_FILEOPS_ALL</a></b><ul compact><li>Display additional information when performing all filesystem operations, 63including read and write. May not be available on all platforms.</ul> 64<b><a name="DB_VERB_RECOVERY">DB_VERB_RECOVERY</a></b><ul compact><li>Display additional information when performing recovery.</ul> 65<b><a name="DB_VERB_REGISTER">DB_VERB_REGISTER</a></b><ul compact><li>Display additional information concerning support for the 66<a href="../api_c/env_open.html#DB_REGISTER">DB_REGISTER</a> flag to the <a href="../api_c/env_open.html">DB_ENV->open</a> method.</ul> 67<b><a name="DB_VERB_REPLICATION">DB_VERB_REPLICATION</a></b><ul compact><li>Display all detailed information about replication. This includes the 68information displayed by all of the other DB_VERB_REP_* and DB_VERB_REPMGR_* 69values.</ul> 70<b><a name="DB_VERB_REP_ELECT">DB_VERB_REP_ELECT</a></b><ul compact><li>Display detailed information about replication elections.</ul> 71<b><a name="DB_VERB_REP_LEASE">DB_VERB_REP_LEASE</a></b><ul compact><li>Display detailed information about replication master leases.</ul> 72<b><a name="DB_VERB_REP_MISC">DB_VERB_REP_MISC</a></b><ul compact><li>Display detailed information about general replication processing not 73covered by the other DB_VERB_REP_* values.</ul> 74<b><a name="DB_VERB_REP_MSGS">DB_VERB_REP_MSGS</a></b><ul compact><li>Display detailed information about replication message processing.</ul> 75<b><a name="DB_VERB_REP_SYNC">DB_VERB_REP_SYNC</a></b><ul compact><li>Display detailed information about replication client synchronization.</ul> 76<b><a name="DB_VERB_REPMGR_CONNFAIL">DB_VERB_REPMGR_CONNFAIL</a></b><ul compact><li>Display detailed information about Replication Manager connection failures.</ul> 77<b><a name="DB_VERB_REPMGR_MISC">DB_VERB_REPMGR_MISC</a></b><ul compact><li>Display detailed information about general Replication Manager processing.</ul> 78<b><a name="DB_VERB_WAITSFOR">DB_VERB_WAITSFOR</a></b><ul compact><li>Display the waits-for table when doing deadlock detection.</ul> 79<br></ul> 80<br> 81<br><b>Errors</b> 82<p>The DB_ENV->set_verbose method 83may fail and return one of the following non-zero errors:</p> 84<br> 85<b>EINVAL</b><ul compact><li>An 86invalid flag value or parameter was specified.</ul> 87<br> 88<hr size=1 noshade> 89<b>Description: <a href="../api_c/env_set_verbose.html">DB_ENV->get_verbose</a></b> 90<p>The <a href="../api_c/env_set_verbose.html">DB_ENV->get_verbose</a> method returns whether the specified <b>which</b> 91parameter is currently set or not.</p> 92<p>The <a href="../api_c/env_set_verbose.html">DB_ENV->get_verbose</a> method may be called at any time during the life of the 93application.</p> 94<p>The <a href="../api_c/env_set_verbose.html">DB_ENV->get_verbose</a> method 95returns a non-zero error value on failure 96and 0 on success. 97</p> 98<b>Parameters</b> <br> 99 <b>which</b><ul compact><li>The <b>which</b> parameter is the message value for which configuration 100is being checked.</ul> 101 <b>onoffp</b><ul compact><li>The <b>onoffp</b> parameter references memory into which 102 the configuration of the specified <b>which</b> parameter is copied.</ul> If the returned <b>onoff</b> value is zero, the parameter is off; 103otherwise on. 104<br> 105<hr size=1 noshade> 106<br><b>Class</b> 107<a href="../api_c/env_class.html">DB_ENV</a> 108<br><b>See Also</b> 109<a href="../api_c/env_list.html">Database Environments and Related Methods</a> 110</tt> 111<table width="100%"><tr><td><br></td><td align=right> 112<a href="../api_c/api_core.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a> 113</td></tr></table> 114<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 115</body> 116</html> 117