1<!--$Id: verbose.so,v 1.2 2006/11/17 17:44:12 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 Reference Guide: Release 4.6: verbose output</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><b><dl><dt>Berkeley DB Reference Guide:<dd>Upgrading Berkeley DB Applications</dl></b></td> 13<td align=right><a href="../upgrade.4.6/full_election.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.4.6/verb.html"><img src="../../images/next.gif" alt="Next"></a> 14</td></tr></table> 15<p align=center><b>Release 4.6: verbose output</b></p> 16<p>When an error occurs in the Berkeley DB library, an exception is thrown or an 17error return value is returned by the interface. In some cases, 18however, the exception or returned value may be insufficient to 19completely describe the cause of the error, especially during initial 20application debugging. Applications can configure Berkeley DB for verbose 21messages to be output when an error occurs, but it's a common cause of 22confusion for new users that no verbose messages are available by 23default.</p> 24<p>In the Berkeley DB 4.6 release, verbose messages are configured by default. 25For the C and C++ APIs, this means the default configuration when 26applications first create <a href="../../api_c/db_class.html">DB</a> or <a href="../../api_c/env_class.html">DB_ENV</a> handles is as if 27the <a href="../../api_c/env_set_errfile.html">DB_ENV->set_errfile</a> or <a href="../../api_c/db_set_errfile.html">DB->set_errfile</a> methods were called 28with the standard error output (stderr) specified as the FILE * 29argument. Applications wanting no output at all can turn off this 30default configuration by calling the <a href="../../api_c/env_set_errfile.html">DB_ENV->set_errfile</a> or 31<a href="../../api_c/db_set_errfile.html">DB->set_errfile</a> methods with NULL as the FILE * argument. 32Additionally, explicitly configuring the error output channel using any 33of the <a href="../../api_c/env_set_errfile.html">DB_ENV->set_errfile</a>, <a href="../../api_c/db_set_errfile.html">DB->set_errfile</a>, 34<a href="../../api_c/env_set_errcall.html">DB_ENV->set_errcall</a>, <a href="../../api_c/db_set_errcall.html">DB->set_errcall</a>, 35<a href="../../api_cxx/env_set_error_stream.html">DbEnv::set_error_stream</a> or <a href="../../api_cxx/db_set_error_stream.html">Db::set_error_stream</a> methods will 36also turn off this default output for the application.</p> 37<p>Applications which configure Berkeley DB with any error output channel should 38not require any changes.</p> 39<p>Applications which depend on having no output from the Berkeley DB library by 40default, should be changed to call the <a href="../../api_c/env_set_errfile.html">DB_ENV->set_errfile</a> or 41<a href="../../api_c/db_set_errfile.html">DB->set_errfile</a> methods with NULL as the FILE * argument.</p> 42<table width="100%"><tr><td><br></td><td align=right><a href="../upgrade.4.6/full_election.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../upgrade.4.6/verb.html"><img src="../../images/next.gif" alt="Next"></a> 43</td></tr></table> 44<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 45</body> 46</html> 47