1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-20 03:41:47 +02:00

Gelato ErrorHandler and Logger improvments

This commit is contained in:
Awilum
2013-01-25 21:49:28 +02:00
parent 0e5e21d5a3
commit c506bbff08
4 changed files with 18 additions and 8 deletions

View File

@@ -23,8 +23,8 @@ define('GELATO_VERSION', '1.0.0');
/**
* Display Gelato Errors or not ?
*/
if ( ! defined('GELATO_DISPLAY_DEVELOPMENT')) {
define('GELATO_DISPLAY_DEVELOPMENT', true);
if ( ! defined('GELATO_DEVELOPMENT')) {
define('GELATO_DEVELOPMENT', true);
}
/**
@@ -42,10 +42,15 @@ require_once __DIR__ . '/Log/Log.php';
/**
* Use Gelato Logger default path or not ?
*/
if ( ! defined('GELATO_LOGGER')) {
Log::configure('path', __DIR__. '/_logs');
if ( ! defined('GELATO_LOGS_PATH')) {
define('GELATO_LOGS_PATH', __DIR__. '/_logs');
}
/**
* Configure Gelato Logger
*/
Log::configure('path', GELATO_LOGS_PATH);
/**
* Load Gelato Error Handler
*/