PATH:
var
/
softaculous
/
sitepad
/
editor
/
site-data
/
plugins
/
kkart-pro
/
includes
/
abstracts
<?php /** * Log handling functionality. * * @class KKART_Log_Handler * @package Kkart\Abstracts */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Abstract KKART Log Handler Class * * @version 1.0.0 * @package Kkart\Abstracts */ abstract class KKART_Log_Handler implements KKART_Log_Handler_Interface { /** * Formats a timestamp for use in log messages. * * @param int $timestamp Log timestamp. * @return string Formatted time for use in log entry. */ protected static function format_time( $timestamp ) { return date( 'c', $timestamp ); } /** * Builds a log entry text from level, timestamp and message. * * @param int $timestamp Log timestamp. * @param string $level emergency|alert|critical|error|warning|notice|info|debug. * @param string $message Log message. * @param array $context Additional information for log handlers. * * @return string Formatted log entry. */ 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( 'kkart_format_log_entry', $entry, array( 'timestamp' => $timestamp, 'level' => $level, 'message' => $message, 'context' => $context, ) ); } }
[-] abstract-kkart-order.php
[edit]
[-] abstract-kkart-privacy.php
[edit]
[-] abstract-kkart-widget.php
[edit]
[-] class-kkart-background-process.php
[edit]
[-] abstract-kkart-log-handler.php
[edit]
[-] abstract-kkart-session.php
[edit]
[-] abstract-kkart-payment-gateway.php
[edit]
[+]
..
[-] abstract-kkart-product.php
[edit]
[-] abstract-kkart-payment-token.php
[edit]
[-] abstract-kkart-shipping-method.php
[edit]
[-] abstract-kkart-object-query.php
[edit]
[-] abstract-kkart-data.php
[edit]
[-] abstract-kkart-settings-api.php
[edit]
[-] abstract-kkart-deprecated-hooks.php
[edit]
[-] abstract-kkart-integration.php
[edit]