# The SeasLog class

(PECL seaslog >=1.0.0)

## 简介

## 类摘要

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