Skip to content

Commit 4b3ed43

Browse files
Added 'use_microseconds' to the monolog configuration.
1 parent 1b16d2d commit 4b3ed43

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

reference/configuration/monolog.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ Full Default Configuration
7474
id: ~ # Required (when the email_prototype is used)
7575
method: ~
7676
formatter: ~
77+
# Setting this parameter to false forces the logger to reduce
78+
# the precision in the datetime field of the log messages from
79+
# microsecond to second. Avoiding a call to the microtime(true)
80+
# function and the subsequent parsing.
81+
use_microseconds: true
7782
7883
.. code-block:: xml
7984
@@ -86,7 +91,13 @@ Full Default Configuration
8691
http://symfony.com/schema/dic/monolog
8792
http://symfony.com/schema/dic/monolog/monolog-1.0.xsd">
8893
89-
<monolog:config>
94+
<!-- By default, use-microseconds is set to true
95+
including 'use-microseconds="false' forces
96+
the logger to reduce the precision in the
97+
datetime field of the log messages from
98+
microsecond to second. Avoiding a call to the
99+
microtime(true) function and the subsequent parsing. -->
100+
<monolog:config use-microseconds="true">
90101
<monolog:handler
91102
name="syslog"
92103
type="stream"

0 commit comments

Comments
 (0)