Skip to content

Commit

Permalink
Update log docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Jun 27, 2016
1 parent e2e1acb commit 777ed60
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions reference/pop_log.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,18 @@ your database table would look like this:
| 2 | 2015-07-11 12:32:33 | 1 | ALERT | Look Out! Something serious happened! |
+----+---------------------+----------+-------+---------------------------------------+

Custom Logging
--------------

You can also write a non-standard, custom log that is specific to your app:

.. code-block:: php
use Pop\Log\Logger;
use Pop\Log\Writer;
$log = new Logger(new Writer\File(__DIR__ . '/logs/app.log'));
$log->customLog('This is a custom log.');
.. _RFC-3164: http://tools.ietf.org/html/rfc3164

0 comments on commit 777ed60

Please sign in to comment.