Function psyiage_log_monitor_log_file

Function Documentation

PSYIAGE_API int psyiage_log_monitor_log_file(psyiage_handle handle, char *path, int enable)

Enable log file monitoring.

Start a thread that will automatically poll a log file for new entries and push to the psyiage instance.

Return

If successful, PSYIAGE_ERROR_SUCCESS. Otherwise, a non-zero error code

Parameters
  • handle: - A handle to the psyiage instance

  • path: - Path of the log file to monitor

  • enable: - Enable (or disable) monitoring of the specified log file