This commit is contained in:
Gitea
2022-01-24 10:43:35 +08:00
commit 15dfc6576b
786 changed files with 219240 additions and 0 deletions

42
core/log/Builder.php Normal file
View File

@@ -0,0 +1,42 @@
<?php
/**
* @copyright (C)2016-2099 Hnaoyun Inc.
* @author XingMeng
* @email hnxsh@foxmail.com
* @date 2017年10月24日
* 日志操作接口类
*/
namespace core\log;
interface Builder
{
// 用于获取单一实例
public static function getInstance();
/**
* 日志写入
*
* @param string $content
* 日志内容
* @param string $level
* 内容级别
*/
public function write($content, $level = "info", $username = null);
/**
* 错误日志快速写入error级别
*
* @param string $content
* 日志内容
*/
public function error($content);
/**
* 基础日志快速写入, info级别
*
* @param string $content
* 日志内容
*/
public function info($content);
}