浏览代码

[HttpKernel] added a NullLogger

Fabien Potencier 14 年之前
父节点
当前提交
3ca5780486
共有 1 个文件被更改,包括 38 次插入0 次删除
  1. 38 0
      src/Symfony/Component/HttpKernel/Log/NullLogger.php

+ 38 - 0
src/Symfony/Component/HttpKernel/Log/NullLogger.php

@@ -0,0 +1,38 @@
+<?php
+
+/*
+ * This file is part of the Symfony package.
+ *
+ * (c) Fabien Potencier <fabien@symfony.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Component\HttpKernel\Log;
+
+use Symfony\Component\HttpKernel\Log\LoggerInterface;
+
+/**
+ * NullLogger.
+ *
+ * @author Fabien Potencier <fabien@symfony.com>
+ */
+class NullLogger implements LoggerInterface
+{
+    public function emerg($message) {}
+
+    public function alert($message) {}
+
+    public function crit($message) {}
+
+    public function err($message) {}
+
+    public function warn($message) {}
+
+    public function notice($message) {}
+
+    public function info($message) {}
+
+    public function debug($message) {}
+}