Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
f54ef2b4
Commit
f54ef2b4
authored
Jul 11, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added "logger" option to error configuration.
parent
3f20c10d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
error.php
application/config/error.php
+25
-4
No files found.
application/config/error.php
View file @
f54ef2b4
...
@@ -14,7 +14,7 @@ return array(
...
@@ -14,7 +14,7 @@ return array(
|
|
*/
*/
'detail'
=>
tru
e
,
'detail'
=>
fals
e
,
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -24,11 +24,32 @@ return array(
...
@@ -24,11 +24,32 @@ return array(
| Would you like errors to be logged? Error logging can be extremely
| Would you like errors to be logged? Error logging can be extremely
| helpful when debugging a production application.
| helpful when debugging a production application.
|
|
| Note: When error logging is enabled, errors will be logged even when
*/
| error detail is disabled.
'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.
|
|
*/
*/
'log'
=>
false
,
'logger'
=>
function
(
$severity
,
$message
)
{
System\File
::
append
(
APP_PATH
.
'storage/log.txt'
,
date
(
'Y-m-d H:i:s'
)
.
' '
.
$severity
.
' - '
.
$message
.
PHP_EOL
);
},
);
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment