Development

/branches/1.2/lib/log/sfLoggerWrapper.class.php

You must first sign up to be able to contribute.

root/branches/1.2/lib/log/sfLoggerWrapper.class.php

Revision 9081, 1.0 kB (checked in by Carl.Vondrick, 7 years ago)

1.1: fixed @param phpdoc to fit specs for log (refs #2991)

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * sfLoggerWrapper wraps a class that implements sfLoggerInterface into a real sfLogger object.
13  *
14  * @package    symfony
15  * @subpackage log
16  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17  * @version    SVN: $Id$
18  */
19 class sfLoggerWrapper extends sfLogger
20 {
21   protected
22     $logger = null;
23
24   /**
25    * Creates a new logger wrapper
26    *
27    * @param sfLoggerInterface $logger The wrapped logger
28    */
29   public function __construct(sfLoggerInterface $logger)
30   {
31     $this->logger = $logger;
32   }
33
34   /**
35    * Logs a message.
36    *
37    * @param string $message   Message
38    * @param string $priority  Message priority
39    */
40   protected function doLog($message, $priority)
41   {
42     $this->logger->log($message, $priority);
43   }
44 }
45
Note: See TracBrowser for help on using the browser.