]> granicus.if.org Git - python/commitdiff
Make clear that the constants are strings.
authorGeorg Brandl <georg@python.org>
Sun, 2 Mar 2008 13:41:39 +0000 (13:41 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 2 Mar 2008 13:41:39 +0000 (13:41 +0000)
Doc/library/logging.rst

index 2399f33cbd622b9df8e2dc526580a34a44c41bfa..dc2555f5919671067522e8ee7f2b8788a923092c 100644 (file)
@@ -1651,21 +1651,21 @@ timed intervals.
    You can use the *when* to specify the type of *interval*. The list of possible
    values is, note that they are not case sensitive:
 
-   +----------+-----------------------+
-   | Value    | Type of interval      |
-   +==========+=======================+
-   | S        | Seconds               |
-   +----------+-----------------------+
-   | M        | Minutes               |
-   +----------+-----------------------+
-   | H        | Hours                 |
-   +----------+-----------------------+
-   | D        | Days                  |
-   +----------+-----------------------+
-   | W        | Week day (0=Monday)   |
-   +----------+-----------------------+
-   | midnight | Roll over at midnight |
-   +----------+-----------------------+
+   +----------------+-----------------------+
+   | Value          | Type of interval      |
+   +================+=======================+
+   | ``'S'``        | Seconds               |
+   +----------------+-----------------------+
+   | ``'M'``        | Minutes               |
+   +----------------+-----------------------+
+   | ``'H'``        | Hours                 |
+   +----------------+-----------------------+
+   | ``'D'``        | Days                  |
+   +----------------+-----------------------+
+   | ``'W'``        | Week day (0=Monday)   |
+   +----------------+-----------------------+
+   | ``'midnight'`` | Roll over at midnight |
+   +----------------+-----------------------+
 
    If *backupCount* is non-zero, the system will save old log files by appending
    extensions to the filename. The extensions are date-and-time based, using the