Debian Codegraph @

docs/api_reference/C/envset_msgfile.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>DB_ENV-&gt;set_msgfile()</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_msgcall.html" title="DB_ENV-&gt;set_msgcall()" />
12 <link rel="next" href="envset_shm_key.html" title="DB_ENV-&gt;set_shm_key()" />
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-&gt;set_msgfile()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envset_msgcall.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="envset_shm_key.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_msgfile"></a>DB_ENV-&gt;set_msgfile()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 void
44 DB_ENV-&gt;set_msgfile(DB_ENV *dbenv, FILE *msgfile); </pre>
45 <p>
46 There are interfaces in the Berkeley DB library which either directly
47 output informational messages or statistical information, or configure
48 the library to output such messages when performing other operations,
49 for example, <a class="xref" href="envset_verbose.html" title="DB_ENV-&gt;set_verbose()">DB_ENV-&gt;set_verbose()</a> and
50 <a class="xref" href="envstat.html" title="DB_ENV-&gt;stat_print()">DB_ENV-&gt;stat_print()</a>.
51 </p>
52 <p>
53 The <code class="methodname">DB_ENV-&gt;set_msgfile()</code> and
54 <a class="xref" href="dbset_msgfile.html" title="DB-&gt;set_msgfile()">DB-&gt;set_msgfile()</a> methods
55 are used to display these messages for the application. In this case
56 the message will include a trailing &lt;newline&gt; character.
57 </p>
58 <p>
59 Setting <span class="bold"><strong>msgfile</strong></span> to NULL unconfigures
60 the interface.
61 </p>
62 <p>
63 Alternatively, you can use the
64
65
66 <a class="xref" href="envset_msgcall.html" title="DB_ENV-&gt;set_msgcall()">DB_ENV-&gt;set_msgcall()</a> or
67 <a class="xref" href="dbset_msgcall.html" title="DB-&gt;set_msgcall()">DB-&gt;set_msgcall()</a>
68 methods to capture the additional error information in a way that does
69 not use C library FILE *'s.
70
71 </p>
72 <p>
73 The <code class="methodname">DB_ENV-&gt;set_msgfile()</code> method configures operations performed
74 using the specified <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a> handle, not all
75 operations performed on the underlying database environment.
76 </p>
77 <p>
78 The <code class="methodname">DB_ENV-&gt;set_msgfile()</code> method may be called at any time during the
79 life of the application.
80 </p>
81 <div class="sect2" lang="en" xml:lang="en">
82 <div class="titlepage">
83 <div>
84 <div>
85 <h3 class="title"><a id="idp52207320"></a>Parameters</h3>
86 </div>
87 </div>
88 </div>
89 <div class="sect3" lang="en" xml:lang="en">
90 <div class="titlepage">
91 <div>
92 <div>
93 <h4 class="title"><a id="idp52195352"></a>msgfile</h4>
94 </div>
95 </div>
96 </div>
97 <p>
98 The <span class="bold"><strong>msgfile</strong></span> parameter is a C library
99 FILE * to be used for displaying messages.
100 </p>
101 </div>
102 </div>
103 <div class="sect2" lang="en" xml:lang="en">
104 <div class="titlepage">
105 <div>
106 <div>
107 <h3 class="title"><a id="idp52203784"></a>Class</h3>
108 </div>
109 </div>
110 </div>
111 <p>
112 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>
113 </p>
114 </div>
115 <div class="sect2" lang="en" xml:lang="en">
116 <div class="titlepage">
117 <div>
118 <div>
119 <h3 class="title"><a id="idp52176800"></a>See Also</h3>
120 </div>
121 </div>
122 </div>
123 <p>
124 <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a>
125 </p>
126 </div>
127 </div>
128 <div class="navfooter">
129 <hr />
130 <table width="100%" summary="Navigation footer">
131 <tr>
132 <td width="40%" align="left"><a accesskey="p" href="envset_msgcall.html">Prev</a> </td>
133 <td width="20%" align="center">
134 <a accesskey="u" href="env.html">Up</a>
135 </td>
136 <td width="40%" align="right"> <a accesskey="n" href="envset_shm_key.html">Next</a></td>
137 </tr>
138 <tr>
139 <td width="40%" align="left" valign="top">DB_ENV-&gt;set_msgcall() </td>
140 <td width="20%" align="center">
141 <a accesskey="h" href="index.html">Home</a>
142 </td>
143 <td width="40%" align="right" valign="top"> DB_ENV-&gt;set_shm_key()</td>
144 </tr>
145 </table>
146 </div>
147 </body>
148 </html>