ErrorLog::SetLog( const char * )
Redirects this Error’s Report() output to a
file.
|
Virtual? |
No |
|
|
Class |
||
|
Arguments |
|
the file to serve as an error log |
|
Returns |
|
Notes
After SetLog() is called
on a given Error object, Report() directs its
output to the specified file rather than stderr. This
setting applies only to the specified Error object.
Example
The following example redirects an Error’s output to a log
file, and then writes the Error’s text to that log file.
ClientApi client; Error e; ErrorLog::SetLog( "C:\Perforce\errlog" ); client.Init( &e ); ErrorLog::Report();






