Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4b3ed43

Browse filesBrowse files
Added 'use_microseconds' to the monolog configuration.
1 parent 1b16d2d commit 4b3ed43
Copy full SHA for 4b3ed43

File tree

Expand file treeCollapse file tree

1 file changed

+12
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-1
lines changed

‎reference/configuration/monolog.rst

Copy file name to clipboardExpand all lines: reference/configuration/monolog.rst
+12-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.