Library logging

Library logging — Methods to redirect library logs to a user-defined output.

Functions

Description

This section defines the methods and types that allow the user to configure how the library logging is exposed.

Functions

mccr_log_handler_t ()

void
(*mccr_log_handler_t) (pthread_t thread_id,
                       const char *message);

Logging handler.

Parameters

thread_id

thread ID where the log message was generated.

 

message

the log message.

 

mccr_log_set_handler ()

void
mccr_log_set_handler (mccr_log_handler_t handler);

Set logging handler.

This method would be usually called once before any other operation with the library, e.g. even before mccr_init().

Parameters

handler

a mccr_log_handler_t, or NULL.

 

Types and Values