Skip to content

rc_client_enable_logging

Jamiras edited this page May 30, 2023 · 3 revisions

Enables logging of processes internal to the rc_client_t at the specified level.

Syntax

void rc_client_enable_logging(
    rc_client_t* client,
    int level,
    rc_client_message_callback_t callback
);

Parameters

client

The rc_client_t to modify.

level

The verbosity level of the log messages:

enum
{
  RC_CLIENT_LOG_LEVEL_NONE = 0,
  RC_CLIENT_LOG_LEVEL_ERROR = 1,
  RC_CLIENT_LOG_LEVEL_WARN = 2,
  RC_CLIENT_LOG_LEVEL_INFO = 3,
  RC_CLIENT_LOG_LEVEL_VERBOSE = 4
};

callback

The function that will actually perform the logging. This allows the caller to integrate the log messages generated by the rc_client_t into their own logging system.


rc_client_message_callback_t

void (*rc_client_message_callback_t )(
    const char* message
);

message

The message to write to the log.

Remarks

The rc_client_t instance created by this function must be released by calling rc_client_destroy.

Minimum version: 11.0.0

See also

rc_client_create

rcheevos

rc_client

Integration guide

client

user

game

processing

rc_client_raintegration

Integration guide

rc_runtime

rhash

rapi

common

user

runtime

info

Clone this wiki locally