File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
source/monitoring-logging Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ your logger.
44
44
After registering a logger, the {+library-short+} generates log messages
45
45
that resemble the following sample message:
46
46
47
- .. code-block:: php
47
+ .. code-block:: none
48
48
:copyable: false
49
49
50
50
[0] => Array
@@ -62,7 +62,7 @@ The sample log message includes the following information:
62
62
- Domain string: Specifies the driver component that emitted the log message. The
63
63
``PHONGO`` domain indicates that the {+extension-short+} generated the event.
64
64
65
- .. note::
65
+ .. note:: Log Message Format
66
66
67
67
The preceding example shows a log message stored in an array. However,
68
68
the format of your log messages might differ depending on your logging
@@ -72,9 +72,10 @@ Create a Monolog Logger
72
72
~~~~~~~~~~~~~~~~~~~~~~~
73
73
74
74
You can use `Monolog <https://packagist.org/packages/monolog/monolog>`__, a
75
- PHP logging library, to configure logging in your application. Monolog provides
76
- a ``Monolog\Logger`` logging class that implements the ``Psr\Log\LoggerInterface``
77
- interface. It also provides handlers that direct logs to specified locations.
75
+ PHP logging library, to configure logging in your application. Monolog simplifies
76
+ logging configuration by providing a ``Monolog\Logger`` class. This class implements
77
+ the ``Psr\Log\LoggerInterface`` interface and provides handlers that direct logs to
78
+ specified locations.
78
79
79
80
To use Monolog, install the ``monolog/monolog`` package by running
80
81
the following command:
You can’t perform that action at this time.
0 commit comments