Seaslog 클래스
(PECL seaslog >=1.0.0)
소개
클래스 개요
class 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()
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 — 경고 로그 정보 기록
- SeasLog::analyzerCount — 레벨, log_path 및 key_word별 로그 수 가져오기
- SeasLog::analyzerDetail — 레벨, log_path, key_word, 시작, 제한, 순서별로 로그 세부 정보 가져오기
- SeasLog::closeLoggerStream — 로거에서 스트림 흐름을 수동으로 해제
- SeasLog::__construct — 설명
- SeasLog::critical — 중요한 로그 정보 기록
- SeasLog::debug — 디버그 로그 정보 기록
- SeasLog::__destruct — 설명
- SeasLog::emergency — 비상상황 로그 정보 기록
- SeasLog::error — 오류 로그 정보 기록
- SeasLog::flushBuffer — 플러시 로그 버퍼, appender 파일로 덤프 또는 tcp/udp를 사용하여 원격 API로 보내기
- SeasLog::getBasePath — SeasLog 기본 경로를 가져옵니다.
- SeasLog::getBuffer — 메모리의 로그 버퍼를 배열로 가져옵니다.
- SeasLog::getBufferEnabled — 버퍼 활성화 여부 확인
- SeasLog::getDatetimeFormat — SeasLog 날짜/시간 형식 스타일 가져오기
- SeasLog::getLastLogger — SeasLog 마지막 로거 경로 가져오기
- SeasLog::getRequestID — SeasLog request_id 차별화된 요청 가져오기
- SeasLog::getRequestVariable — SeasLog 요청 변수 가져오기
- SeasLog::info — 기록 정보 로그 정보
- SeasLog::log — 공통 기록 로그 함수
- SeasLog::notice — 통지 로그 정보 기록
- SeasLog::setBasePath — SeasLog 기본 경로 설정
- SeasLog::setDatetimeFormat — SeasLog 날짜/시간 형식 스타일 설정
- SeasLog::setLogger — SeasLog 로거 이름 설정
- SeasLog::setRequestID — SeasLog request_id 차별화된 요청 설정
- SeasLog::setRequestVariable — SeasLog 요청 변수 수동 설정
- SeasLog::warning — 경고 로그 정보 기록