Overview

Namespaces

  • None
  • VSP
    • Core
      • Abstracts
      • Interfaces
      • Traits
        • WC_Compatibility
    • Deprecation
    • Helper
    • Modules
      • Addons
      • Logger

Classes

  • Addon
  • Log_Handler
  • Plugin_Settings
  • Overview
  • Namespace
  • Class

Class Log_Handler

Class VSP_Log_Handler

VSP\Core\Abstracts\Log_Handler implements VSP\Core\Interfaces\Log_Handler

Direct known subclasses

VSP\Modules\Logger\File_Handler
Abstract
Namespace: VSP\Core\Abstracts
Author: Varun Sridharan varunsridharan23@gmail.com
Located at includes/core/abstracts/class-log-handler.php
Methods summary
protected static string
# format_entry( integer $timestamp, string $level, string $message, array $context )

Builds a log entry text from level, timestamp and message.

Builds a log entry text from level, timestamp and message.

Parameters

$timestamp
Log timestamp.
$level
emergency|alert|critical|error|warning|notice|info|debug.
$message
Log message.
$context
Additional information for log handlers.

Returns

string
Formatted log entry.
protected static string
# format_time( integer $timestamp )

Formats a timestamp for use in log messages.

Formats a timestamp for use in log messages.

Parameters

$timestamp
Log timestamp.

Returns

string
Formatted time for use in log entry.
Methods inherited from VSP\Core\Interfaces\Log_Handler
handle()
API documentation generated by ApiGen