✏️ 编辑:sfLoggerWrapper.class.php
路径:
/virtual/bigbrother/sns/lib/symfony/log/sfLoggerWrapper.class.php
大小:1.05 KB · 修改:2010-08-11 06:11:37 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /* * This file is part of the symfony package. * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> * * 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 <fabien.potencier@symfony-project.com> * @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); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF