diff --git a/reference/pop_log.rst b/reference/pop_log.rst index 0830f6d..52d295f 100644 --- a/reference/pop_log.rst +++ b/reference/pop_log.rst @@ -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 \ No newline at end of file