PluginProbe ʕ •ᴥ•ʔ
Disable Admin Notices – Hide Dashboard Notifications / trunk
Disable Admin Notices – Hide Dashboard Notifications vtrunk
1.4.5 trunk 1.0.0 1.0.2 1.0.3 1.0.5 1.0.6 1.1.1 1.1.3 1.1.4 1.2.0 1.2.2 1.2.3 1.2.4 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4
disable-admin-notices / libs / factory / logger / boot.php
disable-admin-notices / libs / factory / logger Last commit date
assets 1 year ago includes 1 year ago langs 1 year ago pages 1 year ago boot.php 1 year ago
boot.php
62 lines
1 <?php
2
3 use WBCR\Factory_Logger_149\Logger;
4
5 /**
6 * Factory Logger
7 *
8 * @author Artem Prihodko <webtemyk@yandex.ru>
9 * @since 1.0.0
10 *
11 * @package factory-logger
12 * @copyright (c) 2020, Webcraftic Ltd
13 *
14 * @version 1.2.6
15 */
16
17 // Exit if accessed directly
18 if( !defined('ABSPATH') ) {
19 exit;
20 }
21
22 if( defined('FACTORY_LOGGER_149_LOADED') || (defined('FACTORY_LOGGER_STOP') && FACTORY_LOGGER_STOP) ) {
23 return;
24 }
25
26 define('FACTORY_LOGGER_149_LOADED', true);
27 define('FACTORY_LOGGER_149_VERSION', '1.4.9');
28
29 define('FACTORY_LOGGER_149_DIR', dirname(__FILE__));
30 define('FACTORY_LOGGER_149_URL', plugins_url('', __FILE__));
31
32 load_plugin_textdomain('wbcr_factory_logger_149', false, dirname(plugin_basename(__FILE__)) . '/langs');
33
34 require_once(FACTORY_LOGGER_149_DIR . '/includes/class-logger.php');
35
36 if( is_admin() ) {
37 require_once(FACTORY_LOGGER_149_DIR . '/includes/class-log-export.php');
38 require_once(FACTORY_LOGGER_149_DIR . '/pages/class-logger-impressive-page.php');
39 require_once(FACTORY_LOGGER_149_DIR . '/pages/class-logger-impressive-lite.php');
40 require_once(FACTORY_LOGGER_149_DIR . '/pages/class-logger-admin-page.php');
41 }
42
43 /**
44 * @param Wbcr_Factory480_Plugin $plugin
45 */
46 add_action('wbcr_factory_logger_149_plugin_created', function ($plugin) {
47 /* @var Wbcr_Factory480_Plugin $plugin */
48
49 /* Settings of Logger
50 $settings = [
51 'dir' => null,
52 'file' => 'app.log',
53 'flush_interval' => 1000,
54 'rotate_size' => 5000000,
55 'rotate_limit' => 3,
56 ];
57
58 $plugin->set_logger( "WBCR\Factory_Logger_149\Logger", $settings );
59 */
60 $plugin->set_logger("WBCR\Factory_Logger_149\Logger");
61 });
62