Extracting CakeLogInterface to its own file, this fixes the FileLog test case

This commit is contained in:
José Lorenzo Rodríguez 2011-01-28 01:52:54 -04:30
parent e81ff384c7
commit 1ada281e14
3 changed files with 21 additions and 16 deletions

View file

@ -36,22 +36,6 @@
define('LOG_INFO', 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 * Logs messages to configured Log adapters. One or more adapters can be configured

View file

@ -0,0 +1,18 @@
<?php
/**
* 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);
}

View file

@ -17,6 +17,9 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
App::uses('CakeLogInterface', 'Log');
/** /**
* File Storage stream for Logging. Writes logs to different files * File Storage stream for Logging. Writes logs to different files
* based on the type of log it is. * based on the type of log it is.