Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
2f882f45
Commit
2f882f45
authored
Oct 26, 2016
by
Tobias Schultze
Committed by
Fabien Potencier
Nov 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Monolog doc: Use PSR-3 methods
The other methods are not PSR-3 standard and will be removed in monolog 2.
parent
09afa63e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/providers/monolog.rst
doc/providers/monolog.rst
+4
-4
No files found.
doc/providers/monolog.rst
View file @
2f882f45
...
...
@@ -35,7 +35,7 @@ Services
Example usage::
$app['monolog']->
addD
ebug('Testing the Monolog logging.');
$app['monolog']->
d
ebug('Testing the Monolog logging.');
* **monolog.listener**: An event listener to log requests, responses and errors.
...
...
@@ -61,15 +61,15 @@ Usage
-----
The MonologServiceProvider provides a ``monolog`` service. You can use it to
add log entries for any logging level through ``
addDebug()``, ``addI
nfo()``,
``
addWarning()`` and ``addE
rror()``::
add log entries for any logging level through ``
debug()``, ``i
nfo()``,
``
warning()`` and ``e
rror()``::
use Symfony\Component\HttpFoundation\Response;
$app->post('/user', function () use ($app) {
// ...
$app['monolog']->
addI
nfo(sprintf("User '%s' registered.", $username));
$app['monolog']->
i
nfo(sprintf("User '%s' registered.", $username));
return new Response('', 201);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment