error.php 1.54 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php

return array(

	/*
	|--------------------------------------------------------------------------
	| Error Detail
	|--------------------------------------------------------------------------
	|
	| Would you like detailed error messages?
	|
	| If your application is in production, consider turning off error details
	| for enhanced security and user experience.
	|
	*/

17
	'detail' => false,
18 19 20 21 22 23 24 25 26

	/*
	|--------------------------------------------------------------------------
	| Error Logging
	|--------------------------------------------------------------------------
	|
	| Would you like errors to be logged? Error logging can be extremely
	| helpful when debugging a production application.
	|
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
	*/

	'log' => true,

	/*
	|--------------------------------------------------------------------------
	| Error Logger
	|--------------------------------------------------------------------------
	|
	| Because of the sundry 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
	| level such as "Parsing Error", "Fatal Error", etc.
	|
	| A simple logging system has been setup for you. By default, all errors
	| will be logged to the application/log.txt file.
47 48 49
	|
	*/

50 51 52 53
	'logger' => function($severity, $message)
	{
		System\File::append(APP_PATH.'storage/log.txt', date('Y-m-d H:i:s').' '.$severity.' - '.$message.PHP_EOL);
	},
54 55

);