File "class-gplvault-log-handler.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/gplvault-updater/includes/logger/class-gplvault-log-handler.php
File
size: 646 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
defined('ABSPATH') || exit;
abstract class GPLVault_Log_Handler implements GPLVault_Log_Handler_Interface
{
protected static function format_time($timestamp)
{
return gmdate('c', $timestamp);
}
protected static function format_entry($timestamp, $level, $message, $context)
{
$time_string = self::format_time($timestamp);
$level_string = strtoupper($level);
$entry = "[{$time_string}] {$level_string}: {$message}";
return apply_filters('gplvault_format_log_entry', $entry, array('timestamp' => $timestamp, 'level' => $level, 'message' => $message, 'context' => $context));
}
}