11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.188 2003/06/27 18:20:50 momjian Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.189 2003/06/30 16:47:01 tgl Exp $
33-->
44
55<Chapter Id="runtime">
@@ -1513,7 +1513,7 @@ SET ENABLE_SEQSCAN TO OFF;
15131513 <title>When To Log</title>
15141514
15151515 <para>
1516- Here is a list of the various messagetypes :
1516+ Here is a list of the various messageseverity levels :
15171517 <variablelist>
15181518 <varlistentry>
15191519 <term><literal>DEBUG[1-5]</literal></term>
@@ -1596,43 +1596,52 @@ SET ENABLE_SEQSCAN TO OFF;
15961596
15971597 <variablelist>
15981598
1599+ <varlistentry>
1600+ <term><varname>CLIENT_MIN_MESSAGES</varname> (<type>string</type>)</term>
1601+ <listitem>
1602+ <para>
1603+ Controls which message levels are sent to the client.
1604+ Valid values are <literal>DEBUG5</>,
1605+ <literal>DEBUG4</>, <literal>DEBUG3</>, <literal>DEBUG2</>,
1606+ <literal>DEBUG1</>, <literal>LOG</>, <literal>NOTICE</>,
1607+ <literal>WARNING</>, and <literal>ERROR</>. Each level
1608+ includes all the levels that follow it. The later the level,
1609+ the fewer messages are sent. The default is
1610+ <literal>NOTICE</>. Note that <literal>LOG</> has a different
1611+ rank here than in <literal>LOG_MIN_MESSAGES</>.
1612+ </para>
1613+ </listitem>
1614+ </varlistentry>
1615+
15991616 <varlistentry>
16001617 <term><varname>LOG_MIN_MESSAGES</varname> (<type>string</type>)</term>
16011618 <listitem>
16021619 <para>
1603- This controls which message levels are written to the server
1604- log. Valid values are <literal>DEBUG5</>, <literal>DEBUG4</>,
1620+ Controls which message levels are written to the server log.
1621+ Valid values are <literal>DEBUG5</>, <literal>DEBUG4</>,
16051622 <literal>DEBUG3</>, <literal>DEBUG2</>, <literal>DEBUG1</>,
16061623 <literal>INFO</>, <literal>NOTICE</>, <literal>WARNING</>,
16071624 <literal>ERROR</>, <literal>LOG</>, <literal>FATAL</>, and
16081625 <literal>PANIC</>. Each level includes all the levels that
16091626 follow it. The later the level, the fewer messages are sent
16101627 to the log. The default is <literal>NOTICE</>. Note that
16111628 <literal>LOG</> has a different rank here than in
1612- <literal>CLIENT_MIN_MESSAGES</>. Also see that section for an
1613- explanation of the various values.
1629+ <literal>CLIENT_MIN_MESSAGES</>.
16141630 </para>
1615-
16161631 </listitem>
16171632 </varlistentry>
16181633
16191634 <varlistentry>
1620- <term><varname>CLIENT_MIN_MESSAGES </varname> (<type>string</type>)</term>
1635+ <term><varname>LOG_ERROR_VERBOSITY </varname> (<type>string</type>)</term>
16211636 <listitem>
16221637 <para>
1623- This controls which message levels are send to the client.
1624- client. Valid values are <literal>DEBUG5</>,
1625- <literal>DEBUG4</>, <literal>DEBUG3</>, <literal>DEBUG2</>,
1626- <literal>DEBUG1</>, <literal>LOG</>, <literal>NOTICE</>,
1627- <literal>WARNING</>, and <literal>ERROR</>. Each level
1628- includes all the levels that follow it. The later the level,
1629- the fewer messages are sent. The default is
1630- <literal>NOTICE</>. Note that <literal>LOG</> has a different
1631- rank here than in <literal>LOG_MIN_MESSAGES</>.
1638+ Controls the amount of detail written in the server log for each
1639+ message that is logged. Valid values are <literal>TERSE</>,
1640+ <literal>DEFAULT</>, and <literal>VERBOSE</>, each adding more
1641+ fields to displayed messages.
16321642 </para>
16331643 </listitem>
16341644 </varlistentry>
1635-
16361645
16371646 <varlistentry>
16381647 <term><varname>LOG_MIN_ERROR_STATEMENT</varname> (<type>string</type>)</term>
@@ -1643,7 +1652,7 @@ SET ENABLE_SEQSCAN TO OFF;
16431652 statements that cause an error of the specified level, or a
16441653 higher level, are logged. The default is
16451654 <literal>PANIC</literal> (effectively turning this feature
1646- off). Valid values are <literal>DEBUG5</literal>,
1655+ off for normal use ). Valid values are <literal>DEBUG5</literal>,
16471656 <literal>DEBUG4</literal>, <literal>DEBUG3</literal>,
16481657 <literal>DEBUG2</literal>, <literal>DEBUG1</literal>,
16491658 <literal>INFO</literal>, <literal>NOTICE</literal>,
@@ -1654,12 +1663,6 @@ SET ENABLE_SEQSCAN TO OFF;
16541663 logged. Enabling this option can be helpful in tracking down
16551664 the source of any errors that appear in the server log.
16561665 </para>
1657-
1658- <para>
1659- It is recommended you enable <varname>LOG_PID</varname> as well
1660- so you can more easily match the error statement with the error
1661- message.
1662- </para>
16631666 </listitem>
16641667 </varlistentry>
16651668
@@ -1668,12 +1671,12 @@ SET ENABLE_SEQSCAN TO OFF;
16681671 <listitem>
16691672 <para>
16701673 Sets a minimum statement execution time (in milliseconds)
1671- above which a statement will be logged.� All SQL statements
1674+ above which a statement will be logged. All SQL statements
16721675 that run longer than the time specified will be logged together
1673- withthe duration, in seconds. �The default is <literal>0</literal>
1674- (turning this feature off). � For example, if you set it
1676+ withtheir actual duration. Setting this to zero (the default)
1677+ disables time-based logging. For example, if you set it
16751678 to <literal>250</literal> then all SQL statements that run longer
1676- than 250ms will be logged along with the duration. � Enabling this
1679+ than 250ms will be logged. Enabling this
16771680 option can be useful in tracking down unoptimized queries in
16781681 your applications.
16791682 </para>
@@ -1688,8 +1691,8 @@ SET ENABLE_SEQSCAN TO OFF;
16881691 will automatically run in background and any controlling terminals
16891692 are disassociated. Thus, no messages are written to standard
16901693 output or standard error (same effect as <command>postmaster</>'s <option>-S</option>
1691- option). Unless some logging system such as
1692- <application>syslog</> is enabled, using this option is
1694+ option). Unless
1695+ <application>syslog</>logging is enabled, using this option is
16931696 discouraged since it makes it impossible to see error messages.
16941697 </para>
16951698 </listitem>