peixunguanwang/core/log/Builder.php
2022-01-24 10:43:35 +08:00

42 lines
843 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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);
}