处理错误的最佳方法管理日志 [英] Best way to handle the errors & Managing Logs

查看:94
本文介绍了处理错误的最佳方法管理日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,
我正在分层架构中工作.我们正在努力重新设计新产品.我的团队处于讨论和讨论的边缘.分析以遵循管理错误的最佳方法&无论平台是否依赖,都无需使用Log4Net等第三方工具就可以维护它的日志.请注意.我已经阅读了许多文章,这些文章介绍了依赖于平台或依赖第三方工具的方法. .Net在我们的产品中.因此,我们选择与平台无关的方法.



问候
Aabidha Banu.S

Hello frens,
I am working in Layered Architecture.We are working towards re-design a new product.My team is in the verge of discussions & analysis to follow the best way to manage errors & maintains log for it without using third party tool such as Log4Net irrespective of the platform dependency.Kindly advise.I have read many articles where the approaches are platform dependent or thirdparty tool dependent.We integrate Oracle , SAP & .Net in our product. So we opt for platform independent approach.



Regards
Aabidha Banu.S

推荐答案

http://nlog-project.org/ [^ ]


我的建议是在代码中使用try catch blog,并且每当您遇到异常时,都在catch块中编写代码以将错误详细信息插入数据库.我相信这是维护任何项目的错误日志详细信息的最佳方法
my suggestion is that use try catch blog in your code and whenever you will get exception write a code in catch block to insert error details into database.i beleive this is best approach to maintain error log details for any project


这篇关于处理错误的最佳方法管理日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆