Writing a log in a file

Proud::CLogWriter class writes a log in a file.

As explained in Making a log, this function runs asynchronously.

The general usage is guided in below.

// Generate CLogWriter.
CAutoPtr<Proud::CLogWriter> logwriter;
logwriter.Attach(Proud::CLogWriter::New(L"log.txt"));
// Let's make a log with two provided WriteLine function.
logwriter->WriteLine( Proud::TraceID::TID_System, L"This is system log. );
logwriter->WriteLine( "This is %dth log.", 1 );
// Let's change it to a new log file. If generating a new file fails, you can exceptionally manage it with Proud::Exception.
logwriter->SetFileName(L"log2.txt);