I am writing application on C++ .NET in Visual Studio 2008. I want to ask if there is standard function for writing logs ?
Edited
it mean I can write such code and where I can see output logs ?
#ifdef DEBUG
Trace::Write("Message", "Category");
#endif
is pretty much the prebuilt logging facility. To get the output to a file, append the below configuration to your
app.config
file, all the output will be written toc:\myListener.log
:Ref: How to: Create and Initialize Trace Listeners