From 1ada281e14a303e7ccfef98bab524a723037a7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Lorenzo=20Rodri=CC=81guez?= Date: Fri, 28 Jan 2011 01:52:54 -0430 Subject: [PATCH] Extracting CakeLogInterface to its own file, this fixes the FileLog test case --- lib/Cake/Log/CakeLog.php | 16 ---------------- lib/Cake/Log/CakeLogInterface.php | 18 ++++++++++++++++++ lib/Cake/Log/Engine/FileLog.php | 3 +++ 3 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 lib/Cake/Log/CakeLogInterface.php diff --git a/lib/Cake/Log/CakeLog.php b/lib/Cake/Log/CakeLog.php index 041779a96..0a1875a23 100644 --- a/lib/Cake/Log/CakeLog.php +++ b/lib/Cake/Log/CakeLog.php @@ -36,22 +36,6 @@ define('LOG_INFO', 6); } -/** - * CakeLogStreamInterface is the interface that should be implemented - * by all classes that are going to be used as Log streams. - * - * @package cake.libs - */ -interface CakeLogInterface { -/** - * Write method to handle writes being made to the Logger - * - * @param string $type - * @param string $message - * @return void - */ - public function write($type, $message); -} /** * Logs messages to configured Log adapters. One or more adapters can be configured diff --git a/lib/Cake/Log/CakeLogInterface.php b/lib/Cake/Log/CakeLogInterface.php new file mode 100644 index 000000000..0b2cd1a3c --- /dev/null +++ b/lib/Cake/Log/CakeLogInterface.php @@ -0,0 +1,18 @@ +