# The SeasLog class

(PECL seaslog >=1.0.0)

## 简介

## 类摘要

class SeasLog {
/* 方法 */
public static function alert(string `$message`, array `$content` = ?, string `$logger` = ?): bool
public static function analyzerCount(string `$level`, string `$log_path` = ?, string `$key_word` = ?): mixed
public static function analyzerDetail(
string `$level`,
string `$log_path` = ?,
string `$key_word` = ?,
int `$start` = ?,
int `$limit` = ?,
int `$order` = ?
): mixed
public static function closeLoggerStream(int `$model`, string `$logger`): bool
public static function critical(string `$message`, array `$content` = ?, string `$logger` = ?): bool
public static function debug(string `$message`, array `$content` = ?, string `$logger` = ?): bool
public function __destruct()
public static function emergency(string `$message`, array `$content` = ?, string `$logger` = ?): bool
public static function error(string `$message`, array `$content` = ?, string `$logger` = ?): bool
public static function flushBuffer(): bool
public static function Seaslog::getBasePath(): string
public static function getBuffer(): array
public static function getBufferEnabled(): bool
public static function getDatetimeFormat(): string
public static function getLastLogger(): string
public static function getRequestID(): string
public static function getRequestVariable(int `$key`): bool
public static function info(string `$message`, array `$content` = ?, string `$logger` = ?): bool
public static function log(
string `$level`,
string `$message` = ?,
array `$content` = ?,
string `$logger` = ?
): bool
public static function notice(string `$message`, array `$content` = ?, string `$logger` = ?): bool
public static function setBasePath(string `$base_path`): bool
public static function setDatetimeFormat(string `$format`): bool
public static function setLogger(string `$logger`): bool
public static function setRequestID(string `$request_id`): bool
public static function setRequestVariable(int `$key`, string `$value`): bool
public static function warning(string `$message`, array `$content` = ?, string `$logger` = ?): bool
}

## 目录

- SeasLog::alert — 记录 alert 日志
- SeasLog::analyzerCount — Get log count by level, log_path and key_word
- SeasLog::analyzerDetail — Get log detail by level, log_path, key_word, start, limit, order
- SeasLog::closeLoggerStream — Manually release stream flow from logger
- SeasLog::__construct — Description
- SeasLog::critical — 记录 critical 日志
- SeasLog::debug — 记录 debug 日志
- SeasLog::__destruct — Description
- SeasLog::emergency — 记录 emergency 日志
- SeasLog::error — 记录 error 日志
- SeasLog::flushBuffer — 将日志缓存刷新到介质中，文件介质，或者发送到远端的 TCP/UDP 服务地址
- SeasLog::getBasePath — 获得 SeasLog 根目录
- SeasLog::getBuffer — 获取内存中的日志缓存数组
- SeasLog::getBufferEnabled — Determin if buffer enabled
- SeasLog::getDatetimeFormat — 获取 SeasLog 日期格式
- SeasLog::getLastLogger — 获得 SeasLog 最近的一次 Logger 名称
- SeasLog::getRequestID — 获得当前 SeasLog 中用于区分请求的 request_id
- SeasLog::getRequestVariable — Get SeasLog request variable
- SeasLog::info — Record info log information
- SeasLog::log — 公共的日志记录函数
- SeasLog::notice — 记录 notice 日志
- SeasLog::setBasePath — 设置 SeasLog 根目录
- SeasLog::setDatetimeFormat — 设置 SeasLog 日期格式
- SeasLog::setLogger — 设置 SeasLog 的 Logger 名
- SeasLog::setRequestID — 设置可以由 SeasLog 用于区分请求的 request_id
- SeasLog::setRequestVariable — Manually set SeasLog request variable
- SeasLog::warning — Record warning log information

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open