# The SeasLog class

(PECL seaslog >=1.0.0)

## Introduction

## Class synopsis

class SeasLog {
/* Methods */
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
}

## Table of Contents

- SeasLog::alert — Record alert log information
- 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 — Record critical log information
- SeasLog::debug — Record debug log information
- SeasLog::__destruct — Description
- SeasLog::emergency — Record emergency log information
- SeasLog::error — Record error log information
- SeasLog::flushBuffer — Flush logs buffer, dump to appender file, or send to remote api with tcp/udp
- SeasLog::getBasePath — Get SeasLog base path.
- SeasLog::getBuffer — Get the logs buffer in memory as array
- SeasLog::getBufferEnabled — Determin if buffer enabled
- SeasLog::getDatetimeFormat — Get SeasLog datetime format style
- SeasLog::getLastLogger — Get SeasLog last logger path
- SeasLog::getRequestID — Get SeasLog request_id differentiated requests
- SeasLog::getRequestVariable — Get SeasLog request variable
- SeasLog::info — Record info log information
- SeasLog::log — The Common Record Log Function
- SeasLog::notice — Record notice log information
- SeasLog::setBasePath — Set SeasLog base path
- SeasLog::setDatetimeFormat — Set SeasLog datetime format style
- SeasLog::setLogger — Set SeasLog logger name
- SeasLog::setRequestID — Set SeasLog request_id differentiated requests
- SeasLog::setRequestVariable — Manually set SeasLog request variable
- SeasLog::warning — Record warning log information

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