WC_Log_Handler_Interface
in
WC Log Handler Interface
Functions that must be defined to correctly fulfill log handler API.
Tags
Table of Contents
- handle() : bool
- Handle a log entry.
Methods
handle()
Handle a log entry.
public
handle(int $timestamp, string $level, string $message, array<string|int, mixed> $context) : bool
Parameters
- $timestamp : int
-
Log timestamp.
- $level : string
-
emergency|alert|critical|error|warning|notice|info|debug.
- $message : string
-
Log message.
- $context : array<string|int, mixed>
-
Additional information for log handlers.