Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/www/calvetrealty.com/wp-content/plugins/divi-pixel/includes/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/www/calvetrealty.com/wp-content/plugins/divi-pixel/includes/utils/logging.php
<?php

if (!function_exists('dipi_log')) {
    function dipi_log(...$args)
    {
        if (!defined('DIPI_DEBUG_LOG') || constant('DIPI_DEBUG_LOG') !== true || empty($args)) {
            return;
        }
        dipi_log_internal('Log', ...$args);
    }
}

if (!function_exists('dipi_info')) {
    function dipi_info(...$args)
    {
        if (!defined('DIPI_DEBUG_LOG') || constant('DIPI_DEBUG_LOG') !== true || empty($args)) {
            return;
        }
        dipi_log_internal('Info', ...$args);
    }
}

if (!function_exists('dipi_err')) {
    function dipi_err(...$args)
    {
        if (!defined('DIPI_DEBUG_LOG') || constant('DIPI_DEBUG_LOG') !== true || empty($args)) {
            return;
        }
        dipi_log_internal('Error', ...$args);
    }
}

if (!function_exists('dipi_log_internal')) {
    function dipi_log_internal(...$args)
    {
        if (!defined('DIPI_DEBUG_LOG') || constant('DIPI_DEBUG_LOG') !== true || empty($args)) {
            return;
        }

        $prefix = $args[0];

        foreach (array_slice($args, 1) as $arg) {
            if (is_array($arg) || is_object($arg)) {
                error_log("Divi Pixel $prefix: " . print_r($arg, true));
            } else {
                error_log("Divi Pixel $prefix: " . $arg);
            }
        }
    }
}

Hry