Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.1

# 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();

Your search for returned results