Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Guzzle\Log; use Monolog\Logger; /** * @deprecated * @codeCoverageIgno..
Decoded Output download
<?php
namespace Guzzle\Log;
use Monolog\Logger;
/**
* @deprecated
* @codeCoverageIgnore
*/
class MonologLogAdapter extends AbstractLogAdapter
{
/**
* syslog to Monolog mappings
*/
private static $mapping = array(
LOG_DEBUG => Logger::DEBUG,
LOG_INFO => Logger::INFO,
LOG_WARNING => Logger::WARNING,
LOG_ERR => Logger::ERROR,
LOG_CRIT => Logger::CRITICAL,
LOG_ALERT => Logger::ALERT
);
public function __construct(Logger $logObject)
{
$this->log = $logObject;
}
public function log($message, $priority = LOG_INFO, $extras = array())
{
$this->log->addRecord(self::$mapping[$priority], $message, $extras);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Guzzle\Log;
use Monolog\Logger;
/**
* @deprecated
* @codeCoverageIgnore
*/
class MonologLogAdapter extends AbstractLogAdapter
{
/**
* syslog to Monolog mappings
*/
private static $mapping = array(
LOG_DEBUG => Logger::DEBUG,
LOG_INFO => Logger::INFO,
LOG_WARNING => Logger::WARNING,
LOG_ERR => Logger::ERROR,
LOG_CRIT => Logger::CRITICAL,
LOG_ALERT => Logger::ALERT
);
public function __construct(Logger $logObject)
{
$this->log = $logObject;
}
public function log($message, $priority = LOG_INFO, $extras = array())
{
$this->log->addRecord(self::$mapping[$priority], $message, $extras);
}
}
Function Calls
None |
Stats
MD5 | b3a1fb9dcd4905c17046eadfb79b6fae |
Eval Count | 0 |
Decode Time | 99 ms |