Skip to content

Commit

Permalink
Added note about Monolog context data.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 3, 2013
1 parent 745c776 commit 7b5c4ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ The Laravel logging facilities provide a simple layer on top of the powerful [Mo

The logger provides the seven logging levels defined in [RFC 5424](https://tools.ietf.org/html/rfc5424): **debug**, **info**, **notice**, **warning**, **error**, **critical**, and **alert**.

An array of contextual data may also be passed to the log methods:

Log::info('Log message', array('context' => 'Other helpful information'));

Monolog has a variety of additional handlers you may use for logging. If needed, you may access the underlying Monolog instance being used by Laravel:

$monolog = Log::getMonolog();
Expand Down

0 comments on commit 7b5c4ed

Please sign in to comment.