Click here to Skip to main content
16,004,653 members
Articles / Web Development / ASP.NET

Gathering Context Information for Logging

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
3 Jul 2018CPOL7 min read 10.7K   8  
When you write messages to your logs, sometimes it may be useful to add context information. For example, if you write information about some error, you could also include input data in some form, to be able to reproduce the problem easily. Here, I'll show how to gather this additional information.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Finstek
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions