Class AbstractLogger
This is a simple abstract Logger implementation that other Loggers can inherit from.
Copyright (c) 2013 Geoffroy Aubry <geoffroy.aubry@free.fr> Licensed under the GNU Lesser General Public License v3 (LGPL version 3).
- Psr\Log\AbstractLogger implements Psr\Log\LoggerInterface
- GAubry\Logger\AbstractLogger
Abstract
Namespace: GAubry\Logger
Copyright: 2013 Geoffroy Aubry <geoffroy.aubry@free.fr>
License: http://www.gnu.org/licenses/lgpl.html
See: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
Located at logger/src/GAubry/Logger/AbstractLogger.php
Namespace: GAubry\Logger
Copyright: 2013 Geoffroy Aubry <geoffroy.aubry@free.fr>
License: http://www.gnu.org/licenses/lgpl.html
See: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
Located at logger/src/GAubry/Logger/AbstractLogger.php
protected
|
|
protected
|
#
checkMsgLevel( string $sMsgLevel )
Check that specified $sMsgLevel is defined into \Psr\Log\LogLevel. |
protected
string
|
#
interpolateContext( string $sMessage, array $aContext )
Interpolates context values into the message placeholders. Taken from PSR-3's example implementation. |
alert(),
critical(),
debug(),
emergency(),
error(),
info(),
notice(),
warning()
|
log()
|
protected
integer
|
$iMinMsgLevel |
|
#
Int value of threshold required to log message. |
protected static
array
|
$aIntLevels | array(
LogLevel::DEBUG => 0,
LogLevel::INFO => 10,
LogLevel::NOTICE => 20,
LogLevel::WARNING => 30,
LogLevel::ERROR => 40,
LogLevel::CRITICAL => 50,
LogLevel::ALERT => 60,
LogLevel::EMERGENCY => 70
) |
#
Describes log levels with priority. PSR-3 Log levels are string-based… |