Cartflows_Log_Handler_File::handle( int $timestamp, string $level, string $message, array $context )

Handle a log entry.


Parameters

$timestamp

(int) (Required) Log timestamp.

$level

(string) (Required) emergency|alert|critical|error|warning|notice|info|debug.

$message

(string) (Required) Log message.

$context

(array) (Required) Additional information for log handlers.

  • 'source'
    (string) Optional. Determines log file to write to. Default 'log'.
  • '_legacy'
    (bool) Optional. Default false. True to use outdated log format originally used in deprecated Cartflows_WC_Logger::add calls.


Return

(bool) False if value was not handled and true if value was handled.


Source

File: classes/logger/class-cartflows-log-handler-file.php