开发者

Best method of logging error codes

开发者 https://www.devze.com 2023-02-21 22:48 出处:网络
I am trying to programmatically log error codes from any exceptions thrown on a PDA using CF3.5开发者_如何学Python.Does anyone know how to get the most precise code for an error?

I am trying to programmatically log error codes from any exceptions thrown on a PDA using CF3.5开发者_如何学Python. Does anyone know how to get the most precise code for an error?

I've been looking at getting the HResult value of the thrown exception (which I can do), but this doesn't seem specific enough.


you can surely use Log4Net, it works in the CF 3.5, see this post where people were discussing how to configure it:

log4net compact framework 3.5 No app.config to add file appenders


The Power Toys for .NET Compact Framework 3.5 contains Remote Logging Configuration Tool which I haven't used myself but it sounds like what you are looking for.

See http://msdn.microsoft.com/en-us/netframework/Video/cc647002 for a How-To on configuring and reading the log files.

0

精彩评论

暂无评论...
验证码 换一张
取 消