diff --git a/log/error_handler/error_handler.php b/log/error_handler/error_handler.php index 20b68b2..61e179e 100644 --- a/log/error_handler/error_handler.php +++ b/log/error_handler/error_handler.php @@ -2,9 +2,11 @@ namespace SYSTEM\LOG; -abstract class error_handler { +class error_handler { //Error Mask E_ALL, E_NOTICE ... - abstract public static function MASK(); + public static function MASK(){ + throw new \RuntimeException("Implement this");} //Errorhandler - abstract public static function CALL(\Exception $E, $errno, $thrown); + public static function CALL(\Exception $E, $errno, $thrown){ + throw new \RuntimeException("Implement this");} } \ No newline at end of file diff --git a/system/system.php b/system/system.php index d06120f..8b3fc4f 100644 --- a/system/system.php +++ b/system/system.php @@ -34,4 +34,20 @@ class system { public static function isSystemDbInfoPG(){ return (\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE) == \SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE_PG);} + + public static function include_ExceptionShortcut(){ + require_once 'system/log/register_exception_shortcut.php'; + } + + public static function include_ResultShortcut(){ + require_once 'system/log/register_result_shortcut.php'; + } + + public static function register_errorhandler_jsonoutput(){ + require_once 'system/log/register_errorhandler_jsonoutput.php'; + } + + public static function register_errorhandler_dbwriter(){ + require_once 'system/log/register_errorhandler_dbwriter.php'; + } } \ No newline at end of file