Changeset 2278597
- Timestamp:
- 04/07/2020 04:11:43 PM (6 years ago)
- Location:
- maxicharts/trunk
- Files:
-
- 2 edited
-
maxicharts.php (modified) (2 diffs)
-
mcharts_utils.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
maxicharts/trunk/maxicharts.php
r2278459 r2278597 47 47 protected $maxicharts_settings = null; 48 48 private static $license_key = null; 49 private static $log_level = 'warn';49 //private static $log_level = 'warn'; 50 50 protected static $instance = null; 51 51 … … 191 191 $plugin_options = $this->maxicharts_settings->getOptions(); 192 192 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); 195 195 MAXICHARTSAPI::$maxicharts_logger = NULL; 196 196 MAXICHARTSAPI::getLogger()->info("MAXICHARTS_DEBUG_LEVEL = ".MAXICHARTS_DEBUG_LEVEL); -
maxicharts/trunk/mcharts_utils.php
r2278470 r2278597 28 28 29 29 public static $maxicharts_logger = null; 30 public static $maxicharts_log_level = 'warn'; 30 31 31 32 static function getArrayForFieldInForm($gfEntries, $includes) … … 71 72 'maxicharts' 72 73 ), 73 'level' => MAXICHARTS_DEBUG_LEVEL74 'level' => self::$maxicharts_log_level 74 75 ), 75 76 'appenders' => array(
Note: See TracChangeset
for help on using the changeset viewer.