Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting calling method name?
Message
 
 
To
26/02/2013 15:52:59
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01566974
Message ID:
01566986
Views:
51
>The problem with logging is that it's rarely done in a way that's exensible and doesn't add overhead to the system. There are ways to log that don't add alot of overhead, but how you do it depends on why and what you log.
>
>>I decided to move the logging part back to the caller. I am logging in the text file string like this
>>
>>"Calling Remote ModifyPass On {0} with: {1}", ip, invokeString

I guess in our case since we're re-writting VFP code and we're used to logging, we use a Logging class that adds strings to the local file.

The call to this method looks like this

Logging.Log(3, "Some string"); where the first parameter is verbosity level (so, if the verbosity level is 1, then nothing gets logged).

I haven't looked closely into the actual implementation of that class, but it's used in many of our applications.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform