What is tracing?Where it used.Explain few methods available
Answer / kirti
Tracing refers to collecting information about the application while it is running. You use tracing information to troubleshoot an application.
Tracing allows us to observe and correct programming errors. Tracing enables you to record information in various log files about the errors that might occur at run time. You can analyze these log files to find the cause of the errors.
In .NET we have objects called Trace Listeners. A listener is an object that receives the trace output and outputs it somewhere; that somewhere could be a window in your development environment, a file on your hard drive, a Windows Event log, a SQL Server or Oracle database, or any other customized data store.
The System.Diagnostics namespace provides the interfaces, classes, enumerations and structures that are used for tracing The System.Diagnostics namespace provides two classes named Trace and Debug that are used for writing errors and application execution information in logs.
All Trace Listeners have the following functions. Functionality of these functions is same except that the target media for the tracing output is determined by the Trace Listener.
Method Name
Result Fail Outputs the specified text with the Call Stack.
Write Outputs the specified text.
WriteLine Outputs the specified text and a carriage return.
Flush Flushes the output buffer to the target media.
Close Closes the output stream in order to not receive the tracing/debugging output.
Is This Answer Correct ? | 0 Yes | 0 No |
what is VSS? Where we are using?
Do you know about the new features in ASP.Net MVC 4 ?
Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?
My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?
what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?
What is Jit compilers?.how many are available in clr
Why do I get errors when I try to serialize a Hashtable
In which testing using in .net framwork?
Explain something about model, view and controllers in asp.net mvc?
I have a GridView on web form, and a column in a grid is a linkbutton to open popup..., my problem is when i click on link button in a gridview popup opens as well works fine. but when i click on link button once again my popup window doesnt open. Can any one help please...
What is a razor file?
What is the use of viewmodel in mvc?