CRI ADX  Last Updated: 2025-05-07 13:34 p
Log output

Sample directory

/cri/pc/samples/criatomex/acb_info_with_logging

Data used in the sample

/cri/common/smpdata/criatomex/
  • SampleProject.acf
  • AtomCueSheet.acb
  • AtomCueSheet.awb

Sample Explanation

To log the library operation, use the CriAtomExMonitor API function.
To log, the game links the AtomMonitor library, which includes the log output function, instead of the normal Atom library.
To start logging, call the Atom library initialization function, then call the criAtomExMonitor_Initialize function to initialize the function.
After initialization, you can register a callback for logging with the criAtomExMonitor_SetLogCallback function to start logging.
To end logging, specify NULL as the callback.
The code to start logging is shown below.
/* Set the initial value for the initialization config */
/* Initialize the monitor function */
criAtomExMonitor_Initialize(&config, work, work_size);
/* Register the logging callback */
criAtomExMonitor_SetLogCallback(&user_logging_callback_func, user_app_obj);
#define criAtomExMonitor_SetDefaultConfig(p_config)
Assign the default values to the configuration structure of the Monitor library.
Definition: cri_le_atom_ex_monitor.h:102
void criAtomExMonitor_SetLogCallback(CriAtomExMonitorLogCbFunc cbf, void *obj)
Register the log retrieval callback function.
void criAtomExMonitor_Initialize(const CriAtomExMonitorConfig *config, void *work, CriSint32 work_size)
Initialize the monitoring feature.
Configuration structure used to initialize the Monitor library.
Definition: cri_le_atom_ex_monitor.h:122