Analytics.log
Functional API
eventLogYou can use the same feature with it as well.
Feature description
Logs events occurring in the app. You can record various types such as debugging, info, warning, error, screen, impression, and click. In the sandbox environment, they are output to the console, and in the production environment, they are recorded in the logging system.
paramsfor user identification anonymous_keyis automatically included as a default parameter. If you pass the same key directly, the value you pass takes precedence. undefined The value is removed before transmission, and all remaining values are normalized to strings.
Toss app Android/iOS 5.208.0 It can be used in version X and above. In unsupported versions, logs are quietly ignored without an error.
Type
Analytics.log(params: EventLogParams): Promise<void>;Params
type EventLogParams = {
log_name: string;
log_type:
| "debug"
| "info"
| "warn"
| "error"
| "event"
| "screen"
| "impression"
| "click"
| "popup";
params: Record<string, string | number | boolean | null | undefined>;
};Response
None.
Example code
JavaScript
Was this helpful?