error.php 2.12 KB
Newer Older
1 2 3 4 5 6
<?php

return array(

	/*
	|--------------------------------------------------------------------------
Taylor Otwell committed
7 8 9
	| Ignored Error Levels
	|--------------------------------------------------------------------------
	|
10
	| Here you simply specify the error levels that should be ignored by the
Taylor Otwell committed
11 12 13 14 15
	| Laravel error handler. These levels will still be logged; however, no
	| information about about them will be displayed.
	|
	*/

16
	'ignore' => array(),
Taylor Otwell committed
17 18 19

	/*
	|--------------------------------------------------------------------------
20 21 22
	| Error Detail
	|--------------------------------------------------------------------------
	|
Taylor Otwell committed
23 24
	| Detailed error messages contain information about the file in which an
	| error occurs, as well as a PHP stack trace containing the call stack.
25
	| You'll want them when you're trying to debug your application.
26
	|
27 28 29
	| If your application is in production, you'll want to turn off the error
	| details for enhanced security and user experience since the exception
	| stack trace could contain sensitive information.
30 31 32 33 34 35 36 37 38 39
	|
	*/

	'detail' => true,

	/*
	|--------------------------------------------------------------------------
	| Error Logging
	|--------------------------------------------------------------------------
	|
Taylor Otwell committed
40 41 42
	| When error logging is enabled, the "logger" Closure defined below will
	| be called for every error in your application. You are free to log the
	| errors however you want. Enjoy the flexibility.
43 44 45
	|
	*/

Taylor Otwell committed
46
	'log' => false,
47 48 49 50 51 52 53

	/*
	|--------------------------------------------------------------------------
	| Error Logger
	|--------------------------------------------------------------------------
	|
	| Because of the various ways of managing error logging, you get complete
Taylor Otwell committed
54 55 56
	| flexibility to manage error logging as you see fit. This function will
	| be called anytime an error occurs within your application and error
	| logging is enabled. 
57
	|
58 59
	| You may log the error message however you like; however, a simple log
	| solution has been setup for you which will log all error messages to
60
	| text files within the application storage directory.
61 62 63
	|
	*/

Taylor Otwell committed
64
	'logger' => function($exception)
65
	{
66
		Log::exception($exception);
Taylor Otwell committed
67
	},
68

69
);