Deep Trace. Log of every executed line of code
Hi all,
I'm looking for a deep trace log that logs every line of code that is being executed. (Thread ID, Filename, line, time) Any ideas? I'm aware that this produces masses of logdata and I don't wanna litter my code with debuglog every other line.
Does the .net framework offer such a thing?
Cheers in advance
Sam
Re: Deep Trace. Log of every executed line of code
I think you should look into the .Net profiling API. AOP concepts may also help (something like PostSharp, although PostSharp can help you do logging at the method/property level but not down to the code line level.
I must say that your original request sounds like a bit of an overkill. What exactly would you log if you could gain access at runtime to each and every line of code before it was executed?
Re: Deep Trace. Log of every executed line of code
Thank you ntg,
that doesn't look like a 5 Minute solution... I'll look into later. My time is short currently..
Re: Deep Trace. Log of every executed line of code
You could take a look at NLog
Re: Deep Trace. Log of every executed line of code
NLog appears to me like any other logging framework? If it is capable of doing what I was looking for...where exactly would I find the feature?
Re: Deep Trace. Log of every executed line of code
Let me guess... you're looking for something you can just reference, or drop in, do nothing else, and get what you want, right?
Doesn't exist. Not like that anyways... there's a reason everything looks like "any other logging framework" ... how is anything to know what you want logged? I sure as heck don't need everyline that's run logged... just waypoints along the way. And then there's the volumes of data that would get generated... I'm not sure how one would be able to make sense of it AND still maintain their own sanity.
-tg