mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进Cache类 及 驱动 改进Connection类及驱动
This commit is contained in:
@@ -13,7 +13,7 @@ namespace think\log\driver;
|
||||
/**
|
||||
* 本地化调试输出到文件
|
||||
*/
|
||||
class File implements LogInterface
|
||||
class File
|
||||
{
|
||||
protected $config = [
|
||||
'time_format' => ' c ',
|
||||
|
||||
@@ -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 = []);
|
||||
|
||||
}
|
||||
@@ -13,7 +13,7 @@ namespace think\log\driver;
|
||||
/**
|
||||
* 调试输出到SAE
|
||||
*/
|
||||
class Sae implements LogInterface
|
||||
class Sae
|
||||
{
|
||||
protected $config = [
|
||||
'log_time_format' => ' c ',
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
namespace think\log\driver;
|
||||
|
||||
class Socket implements LogInterface
|
||||
class Socket
|
||||
{
|
||||
public $port = 1116; //SocketLog 服务的http的端口号
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace think\log\driver;
|
||||
/**
|
||||
* 模拟测试输出
|
||||
*/
|
||||
class Test implements LogInterface
|
||||
class Test
|
||||
{
|
||||
/**
|
||||
* 日志写入接口
|
||||
|
||||
@@ -16,7 +16,7 @@ use think\Debug;
|
||||
/**
|
||||
* 页面Trace调试
|
||||
*/
|
||||
class Trace implements LogInterface
|
||||
class Trace
|
||||
{
|
||||
protected $config = [
|
||||
'trace_file' => '',
|
||||
|
||||
Reference in New Issue
Block a user