mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-08 06:06:53 +02:00
Gelato: general updates.
This commit is contained in:
@@ -248,11 +248,8 @@ class ErrorHandler
|
|||||||
$error['type'] = get_class($exception);
|
$error['type'] = get_class($exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @todo Write to error log
|
// Write to log
|
||||||
|
Log::write("{$error['type']}: {$error['message']} in {$error['file']} at line {$error['line']}");
|
||||||
/*if () {
|
|
||||||
Write here
|
|
||||||
}*/
|
|
||||||
|
|
||||||
// Send headers and output
|
// Send headers and output
|
||||||
@header('Content-Type: text/html; charset=UTF-8');
|
@header('Content-Type: text/html; charset=UTF-8');
|
||||||
|
@@ -28,12 +28,24 @@ if ( ! defined('GELATO_DISPLAY_ERRORS')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display Gelato Autoloader or not ?
|
* Use Gelato Autoloader or not ?
|
||||||
*/
|
*/
|
||||||
if ( ! defined('GELATO_AUTOLOADER')) {
|
if ( ! defined('GELATO_AUTOLOADER')) {
|
||||||
define('GELATO_AUTOLOADER', true);
|
define('GELATO_AUTOLOADER', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Load Gelato Logger
|
||||||
|
*/
|
||||||
|
require_once __DIR__ . '/Log/Log.php';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use Gelato Logger default path or not ?
|
||||||
|
*/
|
||||||
|
if ( ! defined('GELATO_LOGGER')) {
|
||||||
|
Log::configure('path', __DIR__. '/_logs');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load Gelato Error Handler
|
* Load Gelato Error Handler
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user