* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * sfLoggerWrapper wraps a class that implements sfLoggerInterface into a real sfLogger object. * * @package symfony * @subpackage log * @author Fabien Potencier * @version SVN: $Id: sfLoggerWrapper.class.php 9081 2008-05-20 00:47:12Z Carl.Vondrick $ */ class sfLoggerWrapper extends sfLogger { protected $logger = null; /** * Creates a new logger wrapper * * @param sfLoggerInterface $logger The wrapped logger */ public function __construct(sfLoggerInterface $logger) { $this->logger = $logger; } /** * Logs a message. * * @param string $message Message * @param string $priority Message priority */ protected function doLog($message, $priority) { $this->logger->log($message, $priority); } }