Skip to content

rc_client_enable_logging

Jamiras edited this page Sep 16, 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,
  NUM_RC_CLIENT_LOG_LEVELS = 5
};

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,
    const rc_client_t* client
);

message

The message to write to the log.

client

The rc_client_t that generated the message.

Remarks

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