| Server IP : 89.108.64.180 / Your IP : 216.73.217.92 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/hotelzm.com/wp-content/plugins/clearfy/libs/factory/logger/ |
Upload File : |
<?php
use WBCR\Factory_Logger_117\Logger;
/**
* Factory Logger
*
* @author Artem Prihodko <webtemyk@yandex.ru>
* @since 1.0.0
*
* @package factory-logger
* @copyright (c) 2020, Webcraftic Ltd
*
* @version 1.1.4
*/
// Exit if accessed directly
if( !defined('ABSPATH') ) {
exit;
}
if( defined('FACTORY_LOGGER_117_LOADED') || (defined('FACTORY_LOGGER_STOP') && FACTORY_LOGGER_STOP) ) {
return;
}
define('FACTORY_LOGGER_117_LOADED', true);
define('FACTORY_LOGGER_117_VERSION', '1.1.7');
define('FACTORY_LOGGER_117_DIR', dirname(__FILE__));
define('FACTORY_LOGGER_117_URL', plugins_url(null, __FILE__));
load_plugin_textdomain('wbcr_factory_logger_117', false, dirname(plugin_basename(__FILE__)) . '/langs');
require_once(FACTORY_LOGGER_117_DIR . '/includes/class-logger.php');
if( is_admin() ) {
require_once(FACTORY_LOGGER_117_DIR . '/includes/class-log-export.php');
require_once(FACTORY_LOGGER_117_DIR . '/pages/class-logger-impressive-page.php');
require_once(FACTORY_LOGGER_117_DIR . '/pages/class-logger-impressive-lite.php');
require_once(FACTORY_LOGGER_117_DIR . '/pages/class-logger-admin-page.php');
}
/**
* @param Wbcr_Factory452_Plugin $plugin
*/
add_action('wbcr_factory_logger_117_plugin_created', function ($plugin) {
/* @var Wbcr_Factory452_Plugin $plugin */
/* Settings of Logger
$settings = [
'dir' => null,
'file' => 'app.log',
'flush_interval' => 1000,
'rotate_size' => 5000000,
'rotate_limit' => 3,
];
$plugin->set_logger( "WBCR\Factory_Logger_117\Logger", $settings );
*/
$plugin->set_logger("WBCR\Factory_Logger_117\Logger");
});