Tag Archives: exception handling

Codeigniter: Exception/Error Logging

CodeIgniter provides an easy error handling mechanism to log errors that occur in the application. Step 1: Set option $config[‘log_threshold’] to 1

Step 2: Set $config[‘log_path’] to something else other than the default

Step 3: Set log file extension if default is not needed

Step 4: Set logging date format

Set… Read More »

Zend Framework 2 : Manage Exceptions and Error Page

Step 1 : Please create folder “logs” : go/to/yourapp/data/ and give write permission Step 2 : Visit go/to/yourapp/module/Applcation/Module.php Attach event “MvcEvent::EVENT_DISPATCH_ERROR”

Step 3: get Zend Logger instance

Step 4 : Redirect to error page on catching any error

–>