sfNoLogger.class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * sfNoLogger is a noop logger.
  11. *
  12. * @package symfony
  13. * @subpackage log
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. * @version SVN: $Id: sfNoLogger.class.php 9081 2008-05-20 00:47:12Z Carl.Vondrick $
  16. */
  17. class sfNoLogger extends sfLogger
  18. {
  19. /**
  20. * Initializes this logger.
  21. *
  22. * @param sfEventDispatcher $dispatcher A sfEventDispatcher instance
  23. * @param array $options An array of options.
  24. *
  25. * @return Boolean true, if initialization completes successfully, otherwise false.
  26. */
  27. public function initialize(sfEventDispatcher $dispatcher, $options = array())
  28. {
  29. }
  30. /**
  31. * Logs a message.
  32. *
  33. * @param string $message Message
  34. * @param string $priority Message priority
  35. */
  36. protected function doLog($message, $priority)
  37. {
  38. }
  39. }