if you like to add some information where you located within your code use something like this:
using System.Reflection;
.
.
.
Logger.YourMethodForMessages(
"Validation failed in: " +
((object)MethodBase.GetCurrentMethod()).ToString() + "; it has some invalid data;";
);
cheers
Monday, August 21, 2006
logging on method level: MethodBase.GetCurrentMethod()
at 9:07 AM Posted by roni schuetz
Labels: .net, code sample
Subscribe to:
Post Comments (Atom)
Shared Cache - .Net Caching made easy
All information about Shared Cache is available here: http://www.sharedcache.com/. Its free and easy to use, we provide all sources at codeplex.
No comments:
Post a Comment