ErrorLog::SetSyslog()

Redirects this Error’s Report() output to syslog on UNIX only.

Virtual?

No

 

Class

ErrorLog

 

Arguments

None

 

Returns

void

 

Notes

This method is only valid on UNIX. After it is called, the output of Report() is redirected to syslog, similar to SetLog().

Example

The following example redirects an Error’s output to syslog, and then outputs the Error’s text to syslog.

ClientApi client;
Error e;

ErrorLog::SetSyslog();
client.Init( &e );
ErrorLog::Report();