File "abstract-wc-log-handler.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-log-handler.php
File
size: 643 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
if (!defined('ABSPATH')) {
exit;
}
abstract class WC_Log_Handler implements WC_Log_Handler_Interface
{
protected static function format_time($timestamp)
{
return date('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('woocommerce_format_log_entry', $entry, array('timestamp' => $timestamp, 'level' => $level, 'message' => $message, 'context' => $context));
}
}