diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index d1a5b96..50ab506 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -15443,6 +15443,19 @@ SELECT * FROM pg_ls_dir('.') WITH ORDINALITY AS t(ls,n);
       </row>
 
       <row>
+       <entry><literal><function>pg_current_logfile()</function></literal></entry>
+       <entry><type>text</type></entry>
+       <entry>primary log file name in use by the logging collector</entry>
+      </row>
+
+      <row>
+       <entry><literal><function>pg_current_logfile(<type>text</>)</function></literal></entry>
+       <entry><type>text</type></entry>
+       <entry>log file name, of log in the requested format, in use by the
+       logging collector</entry>
+      </row>
+
+      <row>
        <entry><literal><function>pg_my_temp_schema()</function></literal></entry>
        <entry><type>oid</type></entry>
        <entry>OID of session's temporary schema, or 0 if none</entry>
@@ -15480,12 +15493,6 @@ SELECT * FROM pg_ls_dir('.') WITH ORDINALITY AS t(ls,n);
       </row>
 
       <row>
-       <entry><literal><function>pg_current_logfile(<optional> <parameter>destination</> <type>text</></optional>)</function></literal></entry>
-       <entry><type>text</type></entry>
-       <entry>current log file used by the logging collector</entry>
-      </row>
-
-      <row>
        <entry><literal><function>session_user</function></literal></entry>
        <entry><type>name</type></entry>
        <entry>session user name</entry>
@@ -15667,6 +15674,29 @@ SET search_path TO <replaceable>schema</> <optional>, <replaceable>schema</>, ..
    </para>
 
    <indexterm>
+    <primary>pg_current_logile</primary>
+   </indexterm>
+
+   <para>
+    <function>pg_current_logfile</function> returns, as <type>text</type>,
+    the name of either the csv or stderr log file currently in use by the
+    logging collector.  This is a file name, not a path.  The file is
+    found in the <xref linkend="guc-log-directory"> directory.  Log
+    collection must be active or the return value
+    is <literal>NULL</literal>.  When multiple logfiles exist, each in a
+    different format, <function>pg_current_logfile</function> called
+    without arguments returns the name of the file having the first format
+    found in the ordered
+    list: <systemitem>stderr</>, <systemitem>csvlog</>.
+    <literal>NULL</literal> is returned when no log file has any of these
+    formats.  To request a specific file format supply,
+    as <type>text</type>, either <systemitem>csvlog</>
+    or <systemitem>stderr</> as the value of the optional parameter. The
+    return value is <literal>NULL</literal> when the log format requested
+    is not a configured <xref linkend="guc-log-destination">.
+   </para>
+
+   <indexterm>
     <primary>pg_my_temp_schema</primary>
    </indexterm>
 
@@ -15692,23 +15722,6 @@ SET search_path TO <replaceable>schema</> <optional>, <replaceable>schema</>, ..
     <primary>pg_notification_queue_usage</primary>
    </indexterm>
 
-   <indexterm>
-    <primary>pg_current_logfile</primary>
-   </indexterm>
-
-   <para>
-    <function>pg_current_logfile</function> returns the name of the
-    current log file used by the logging collector, as <type>text</type>.
-    Log collection must be active or the return value is undefined. When
-    csvlog is used as log destination, the csv filename is returned, when
-    it is set to stderr, the stderr filename is returned. When both are
-    used, it returns the stderr filename.
-    There is an optional parameter of type <type>text</type> to determines
-    the log filename to return following the log destination, values can
-    be 'csvlog' or 'stderr'. When the log format asked is not used as log
-    destination then the return value is undefined.
-   </para>
-
    <para>
     <function>pg_listening_channels</function> returns a set of names of
     asynchronous notification channels that the current session is listening
diff --git a/doc/src/sgml/storage.sgml b/doc/src/sgml/storage.sgml
index 6cecd81..6420597 100644
--- a/doc/src/sgml/storage.sgml
+++ b/doc/src/sgml/storage.sgml
@@ -83,6 +83,16 @@ Item
 </row>
 
 <row>
+ <entry><filename>pg_log_file</></entry>
+ <entry>A file recording the current log file(s) used by the syslogger, one
+  file name per line.  Only file names are present
+  in <filename>pg_log_file</>; the <xref linkend="guc-log-directory">
+  configuration parameter sets the location of the files.  This file is
+  present only when <xref linkend="guc-logging-collector"> is
+  activated.</entry>
+</row>
+
+<row>
  <entry><filename>pg_logical</></entry>
  <entry>Subdirectory containing status data for logical decoding</entry>
 </row>
@@ -170,13 +180,6 @@ last started with</entry>
   (this file is not present after server shutdown)</entry>
 </row>
 
-<row>
- <entry><filename>pg_log_file</></entry>
- <entry>A file recording the current log file(s) used by the syslogger
-  when log collection is active (this file is not present when logging_collector is not activated)</entry>
-</row>
-
-
 </tbody>
 </tgroup>
 </table>
