改进Cache类 及 驱动 改进Connection类及驱动

This commit is contained in:
thinkphp
2016-05-05 16:32:47 +08:00
parent fd5447fc4f
commit 855c2c75da
31 changed files with 147 additions and 599 deletions

View File

@@ -13,7 +13,7 @@ namespace think\log\driver;
/**
* 本地化调试输出到文件
*/
class File implements LogInterface
class File
{
protected $config = [
'time_format' => ' c ',

View File

@@ -1,25 +0,0 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\log\driver;
interface LogInterface
{
/**
* 日志写入接口
* @access public
* @param array $log 日志信息
* @return bool
*/
public function save(array $log = []);
}

View File

@@ -13,7 +13,7 @@ namespace think\log\driver;
/**
* 调试输出到SAE
*/
class Sae implements LogInterface
class Sae
{
protected $config = [
'log_time_format' => ' c ',

View File

@@ -5,7 +5,7 @@
*/
namespace think\log\driver;
class Socket implements LogInterface
class Socket
{
public $port = 1116; //SocketLog 服务的http的端口号

View File

@@ -13,7 +13,7 @@ namespace think\log\driver;
/**
* 模拟测试输出
*/
class Test implements LogInterface
class Test
{
/**
* 日志写入接口

View File

@@ -16,7 +16,7 @@ use think\Debug;
/**
* 页面Trace调试
*/
class Trace implements LogInterface
class Trace
{
protected $config = [
'trace_file' => '',