Cleaning up configuration comments.
This commit is contained in:
@@ -7,7 +7,9 @@ return array(
|
|||||||
| Error Detail
|
| Error Detail
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Would you like detailed error messages?
|
| 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.
|
||||||
|
|
|
|
||||||
| If your application is in production, consider turning off error details
|
| If your application is in production, consider turning off error details
|
||||||
| for enhanced security and user experience.
|
| for enhanced security and user experience.
|
||||||
@@ -21,8 +23,9 @@ return array(
|
|||||||
| Error Logging
|
| Error Logging
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Would you like errors to be logged? Error logging can be extremely
|
| Error Logging will use the "logger" function defined below to log error
|
||||||
| helpful when debugging a production application.
|
| messages, which gives you complete freedom to determine how error
|
||||||
|
| messages are logged. Enjoy the flexibility.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -33,14 +36,14 @@ return array(
|
|||||||
| Error Logger
|
| Error Logger
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Because of the sundry ways of managing error logging, you get complete
|
| Because of the various ways of managing error logging, you get complete
|
||||||
| flexibility to manage error logging as you see fit.
|
| flexibility to manage error logging as you see fit.
|
||||||
|
|
|
|
||||||
| This function will be called when an error occurs in your application.
|
| This function will be called when an error occurs in your application.
|
||||||
| You can log the error however you like.
|
| You can log the error however you like.
|
||||||
|
|
|
|
||||||
| The error "severity" passed to the method is a human-readable severity
|
| The error "severity" passed to the method is a human-readable severity
|
||||||
| level such as "Parsing Error", "Fatal Error", etc.
|
| level such as "Parsing Error" or "Fatal Error".
|
||||||
|
|
|
|
||||||
| A simple logging system has been setup for you. By default, all errors
|
| A simple logging system has been setup for you. By default, all errors
|
||||||
| will be logged to the application/log.txt file.
|
| will be logged to the application/log.txt file.
|
||||||
@@ -49,7 +52,7 @@ return array(
|
|||||||
|
|
||||||
'logger' => function($severity, $message)
|
'logger' => function($severity, $message)
|
||||||
{
|
{
|
||||||
System\File::append(STORAGE_PATH.'log.txt', date('Y-m-d H:i:s').' '.$severity.' - '.$message.PHP_EOL);
|
File::append(STORAGE_PATH.'log.txt', date('Y-m-d H:i:s').' '.$severity.' - '.$message.PHP_EOL);
|
||||||
},
|
},
|
||||||
|
|
||||||
);
|
);
|
||||||
Reference in New Issue
Block a user