# The SeasLog class

(PECL seaslog >=1.0.0)

## Introduction

## Class synopsis

SeasLog {
/* Methods */
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 ( void )
public static emergency ( string `$message` [, array `$content` [, string `$logger` ]] ) : bool
public static error ( string `$message` [, array `$content` [, string `$logger` ]] ) : bool
public static flushBuffer ( void ) : bool
public static Seaslog::getBasePath ( void ) : string
public static getBuffer ( void ) : array
public static getBufferEnabled ( void ) : bool
public static getDatetimeFormat ( void ) : string
public static getLastLogger ( void ) : string
public static getRequestID ( void ) : 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
}

## 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