public function __construct() { RlxConfig::LoadConfig(); self::$_path = RlxConfig::conf('log.path'); self::$_log_types['log'] = RlxConfig::conf('log.types'); self::$_log_types['errors'] = RlxConfig::conf('log.errors'); self::$_display = RlxConfig::conf('display_errors'); if (ini_get('display_errors') === '1' && self::$_display === FALSE) { error_reporting(0); ini_set('ignore_repeated_errors', 'On'); ini_set('ignore_repeated_source', 'On'); set_exception_handler(array(__CLASS__, 'ExceptionHandler')); set_error_handler(array(__CLASS__, 'ErrorHandler')); } else { error_reporting(E_ALL | E_STRICT); } }