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
30bf0c7a
Commit
30bf0c7a
authored
Nov 06, 2016
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.3'
* 1.3: Monolog doc: Use PSR-3 methods fixed .travis.yml
parents
43bf7655
a12c3216
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
.travis.yml
.travis.yml
+1
-1
doc/providers/monolog.rst
doc/providers/monolog.rst
+4
-4
No files found.
.travis.yml
View file @
30bf0c7a
...
@@ -8,7 +8,7 @@ env:
...
@@ -8,7 +8,7 @@ env:
cache
:
cache
:
directories
:
directories
:
-
$HOME/.composer/cache
-
$HOME/.composer/cache
/files
before_install
:
before_install
:
-
if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi
-
if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-rm xdebug.ini; fi
...
...
doc/providers/monolog.rst
View file @
30bf0c7a
...
@@ -46,7 +46,7 @@ Services
...
@@ -46,7 +46,7 @@ Services
Example usage::
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.
* **monolog.listener**: An event listener to log requests, responses and errors.
...
@@ -71,15 +71,15 @@ Usage
...
@@ -71,15 +71,15 @@ Usage
-----
-----
The MonologServiceProvider provides a ``monolog`` service. You can use it to
The MonologServiceProvider provides a ``monolog`` service. You can use it to
add log entries for any logging level through ``
addDebug()``, ``addI
nfo()``,
add log entries for any logging level through ``
debug()``, ``i
nfo()``,
``
addWarning()`` and ``addE
rror()``::
``
warning()`` and ``e
rror()``::
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Response;
$app->post('/user', function () use ($app) {
$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);
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