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

Remove an unneeded logging article #8770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Improvements on the comments.
  • Loading branch information
ricardodevries committed Dec 2, 2017
commit b366310ea621715e64108ee84a0f176c70fa97e0
12 changes: 2 additions & 10 deletions 12 reference/configuration/monolog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ Full Default Configuration
id: ~ # Required (when the email_prototype is used)
method: ~
formatter: ~
# Setting this parameter to false forces the logger to reduce
# the precision in the datetime field of the log messages from
# microsecond to second. Avoiding a call to the microtime(true)
# function and the subsequent parsing.
# Set to false to use seconds (instead of microseconds) in
# the logs (gives a small performance boost).
use_microseconds: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree! This is a little long :). How about:

Set to false to use seconds (instead of microseconds) in the logs (gives a small performance boost)


.. code-block:: xml
Expand All @@ -91,12 +89,6 @@ Full Default Configuration
http://symfony.com/schema/dic/monolog
http://symfony.com/schema/dic/monolog/monolog-1.0.xsd">

<!-- By default, use-microseconds is set to true
including 'use-microseconds="false' forces
the logger to reduce the precision in the
datetime field of the log messages from
microsecond to second. Avoiding a call to the
microtime(true) function and the subsequent parsing. -->
<monolog:config use-microseconds="true">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to put the comments in XML also. We typically just put the comments in YAML - it's the most visible and avoids duplication :)

<monolog:handler
name="syslog"
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.