PluginProbe
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF / 2.0.7
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF v2.0.7
2.0.7 2.0.6 2.0.5 trunk 1.3.7 1.4.0 1.4.1 1.4.2 1.4.6 1.5.0 1.5.3 1.5.6 1.5.8 1.6.5 1.6.6 1.6.9 1.7.0 1.7.4 1.8.1 1.8.2 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 All 26 releases
robin-image-optimizer / libs / factory / logger / boot.php
boot.php
64 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use WBCR\Factory_Logger_359\Logger;
4
5 /**
6 * Factory Logger
7 *
8 * @since 1.0.0
9 *
10 * @package factory-logger
11 *
12 * @version 1.2.6
13 */
14
15 // Exit if accessed directly
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19
20 if ( defined( 'FACTORY_LOGGER_359_LOADED' ) || ( defined( 'FACTORY_LOGGER_STOP' ) && FACTORY_LOGGER_STOP ) ) {
21 return;
22 }
23
24 define( 'FACTORY_LOGGER_359_LOADED', true );
25 define( 'FACTORY_LOGGER_359_VERSION', '1.4.9' );
26
27 define( 'FACTORY_LOGGER_359_DIR', __DIR__ );
28 define( 'FACTORY_LOGGER_359_URL', plugins_url( '', __FILE__ ) );
29
30 load_plugin_textdomain( 'robin-image-optimizer', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' );
31
32 require_once FACTORY_LOGGER_359_DIR . '/includes/class-logger.php';
33
34 if ( is_admin() ) {
35 require_once FACTORY_LOGGER_359_DIR . '/includes/class-log-export.php';
36 require_once FACTORY_LOGGER_359_DIR . '/pages/class-logger-impressive-page.php';
37 require_once FACTORY_LOGGER_359_DIR . '/pages/class-logger-impressive-lite.php';
38 require_once FACTORY_LOGGER_359_DIR . '/pages/class-logger-admin-page.php';
39 }
40
41 /**
42 * @param Wbcr_Factory600_Plugin $plugin
43 */
44 add_action(
45 'wbcr_factory_logger_359_plugin_created',
46 function ( $plugin ) {
47 /* @var Wbcr_Factory600_Plugin $plugin */
48
49 /*
50 Settings of Logger
51 $settings = [
52 'dir' => null,
53 'file' => 'app.log',
54 'flush_interval' => 1000,
55 'rotate_size' => 5000000,
56 'rotate_limit' => 3,
57 ];
58
59 $plugin->set_logger( "WBCR\Factory_Logger_359\Logger", $settings );
60 */
61 $plugin->set_logger( 'WBCR\Factory_Logger_359\Logger' );
62 }
63 );
64