Plugin Directory

Changeset 2278597


Ignore:
Timestamp:
04/07/2020 04:11:43 PM (6 years ago)
Author:
munger41
Message:

update log level in API

Location:
maxicharts/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • maxicharts/trunk/maxicharts.php

    r2278459 r2278597  
    4747        protected $maxicharts_settings = null;
    4848        private static $license_key = null;
    49         private static $log_level = 'warn';
     49        //private static $log_level = 'warn';
    5050        protected static $instance = null;
    5151
     
    191191            $plugin_options = $this->maxicharts_settings->getOptions();
    192192            self::$license_key = $plugin_options['license_key'];
    193             self::$log_level = isset($plugin_options['maxicharts_log_level']) ? $plugin_options['maxicharts_log_level'] : 'warn';
    194             define("MAXICHARTS_DEBUG_LEVEL",self::$log_level);
     193            MAXICHARTSAPI::$maxicharts_log_level = isset($plugin_options['maxicharts_log_level']) ? $plugin_options['maxicharts_log_level'] : 'warn';
     194            //define("MAXICHARTS_DEBUG_LEVEL",self::$log_level);
    195195            MAXICHARTSAPI::$maxicharts_logger = NULL;
    196196            MAXICHARTSAPI::getLogger()->info("MAXICHARTS_DEBUG_LEVEL = ".MAXICHARTS_DEBUG_LEVEL);
  • maxicharts/trunk/mcharts_utils.php

    r2278470 r2278597  
    2828
    2929        public static $maxicharts_logger = null;
     30        public static $maxicharts_log_level = 'warn';
    3031
    3132        static function getArrayForFieldInForm($gfEntries, $includes)
     
    7172                        'maxicharts'
    7273                    ),
    73                     'level' => MAXICHARTS_DEBUG_LEVEL
     74                    'level' => self::$maxicharts_log_level
    7475                ),
    7576                'appenders' => array(
Note: See TracChangeset for help on using the changeset viewer.