Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is tracing?Where it used.Explain few methods available

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Core features of ASP.NET MVC?

1068


Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?

951


Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

1052


What is entity framework firstordefault?

981


What is the meaning of unobtrusive javascript? Explain us by any practical example.

1007


What is a model in programming?

1003


What are the components of the .net framework.

1056


What is viewdata?

1033


Mention some action filters which are used regularly in ASP.Net MVC?

993


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

1081


When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?

1361


What is the mvc pattern (model view controller pattern)?

1012


What is Peek method in Tempdata in ASP.Net MVC?

1161


What you mean by routing in asp.net mvc?

1061


Explain the methods used to render the views in mvc?

1034