58 lines
1.7 KiB
PHP
Raw Normal View History

2011-06-08 23:45:08 -05:00
<?php
return array(
/*
|--------------------------------------------------------------------------
| Error Detail
|--------------------------------------------------------------------------
|
2011-07-28 13:47:05 -05:00
| Detailed error messages contain information about the file in which
| an error occurs, a stack trace, and a snapshot of the source code
| in which the error occured.
2011-06-08 23:45:08 -05:00
|
| If your application is in production, consider turning off error details
| for enhanced security and user experience.
|
*/
2011-07-11 12:14:06 -07:00
'detail' => true,
2011-06-08 23:45:08 -05:00
/*
|--------------------------------------------------------------------------
| Error Logging
|--------------------------------------------------------------------------
|
2011-07-28 13:47:05 -05:00
| Error Logging will use the "logger" function defined below to log error
| messages, which gives you complete freedom to determine how error
| messages are logged. Enjoy the flexibility.
2011-06-08 23:45:08 -05:00
|
*/
2011-07-11 12:14:06 -07:00
'log' => false,
/*
|--------------------------------------------------------------------------
| Error Logger
|--------------------------------------------------------------------------
|
2011-07-28 13:47:05 -05:00
| Because of the various ways of managing error logging, you get complete
| flexibility to manage error logging as you see fit.
|
| This function will be called when an error occurs in your application.
| You can log the error however you like.
|
| The error "severity" passed to the method is a human-readable severity
2011-07-28 13:47:05 -05:00
| level such as "Parsing Error" or "Fatal Error".
|
| A simple logging system has been setup for you. By default, all errors
| will be logged to the application/log.txt file.
2011-06-08 23:45:08 -05:00
|
*/
2011-08-03 22:10:07 -05:00
'logger' => function($severity, $message, $trace)
{
2011-07-28 13:47:05 -05:00
File::append(STORAGE_PATH.'log.txt', date('Y-m-d H:i:s').' '.$severity.' - '.$message.PHP_EOL);
},
2011-06-08 23:45:08 -05:00
);