Class Horde_Core_Log_Logger
This class extends the base Horde_Log_Logger class to ensure that the log
entries are consistently generated across the applications and framework
libraries.
Copyright 2010-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
-
Horde_Log_Logger
-
Horde_Core_Log_Logger
Methods summary
public
|
#
log( mixed $event, mixed $priority = null, array $options = array() )
Logs a message to the global Horde log backend.
Logs a message to the global Horde log backend.
Parameters
- $event
- <p>Either a string (log string), an array
(containing 'level', 'message', and 'timestamp'
entries) or an object with a getMessage()
method (e.g. PEAR_Error, Exception,
ErrorException).</p>
- $priority
- <p>The priority of the message. Integers
correspond to Horde_Log constants. String
values are auto translated to Horde_Log
constants.</p>
- $options
- Additional options:
<pre><span class="php-quote">'file'</span> - (string) The filename to <span class="php-keyword1">use</span> in the <span class="php-keyword2">log</span> message.
<span class="php-quote">'line'</span> - (integer) The <span class="php-keyword2">file</span> line to <span class="php-keyword1">use</span> in the <span class="php-keyword2">log</span> message.
<span class="php-quote">'trace'</span> - (integer) The trace level of the original <span class="php-keyword2">log</span> location.</pre>
|