Created
March 5, 2013 06:34
-
-
Save jayzeng/5088451 to your computer and use it in GitHub Desktop.
fatal error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Log down all fatal error | |
register_shutdown_function( function() { | |
$lastError = error_get_last(); | |
if( count($lastError) > 0 ) { | |
Logger::log('Fatal error', implode(',', $lastError)); | |
} | |
}); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment