How to use ELMAH to manually log errors?
2014-07-08 01:10
330 查看
http://stackoverflow.com/questions/7441062/how-to-use-elmah-to-manually-log-errorsYou can use the Elmah.ErrorSignal() method to log an issue without raising an exception.
try { some code } catch(Exception ex) { // log error Elmah.ErrorSignal.FromCurrentContext().Raise(ex); //continue }
相关文章推荐
- IIS->Error Pages:How to Use Detailed Errors in IIS 7.0
- HowTO: Create an Event Log Source in code, without the Permission errors
- How to use Access Log Sampler to Generate Traffic with JMeter
- How to use logrotate to manage log files in linux(如何在Linux中使用logrotate去管理日志文件)
- How to use logrotate to manage log files in Linux
- how to do error handing with WCF by using attributes to log your errors z
- How to Manually Determining and Resolving Archive Gaps in ASM (Copy archivelog in ASM using RMAN) [I
- How to Use NSLog to Debug CGRect and CGPoint
- How to add a TaskListener use BpmnParseHandler
- How to use Oracle 11g ODP.NET UDT in an Oracle Stored Procedure's Where clause
- How to use cref links redirect to external content ?
- Virtual Network (1) - How to use it in a guest
- 如何使用OpenCV的处理图像,文字变得锐利和清晰?(How to use OpenCV to process image so that the text become sharp and clea
- How to use user script (custom script)如何使用用户脚本之Chrome
- ABAP--How to use Toolbar control(SAP样例摘抄)
- how to use bash parameter ?It's a good example
- How to use your Selenium Tests for automated JavaScript/AJAX Performance Analysis
- How to use PRU-ICSS in AM5728?
- phpBB's Failed Sending Email Errors (and how to resolve)
- How to Use C++ With PHP and JQuery to Make Neat Apps