Fluent Commerce Logo
Docs

Log Action & Events

How-to Guide

Author:

Fluent Commerce

Changed on:

13 Dec 2023

Key Points

  • In the fluent platform, a log action allows to generate a specific log event when a rule executes. 

Steps

Step arrow right iconinclude log action in the custom rule

The following sample code can be used on your custom rule to capture the details.`context.action().log(message, detailedMessage, attributes);`

Step arrow right iconRun the following API call


The following API can be used to extract the data:`{{fluentApiHost}}/api/v4.1/event?category=CUSTOM&from={{fromDate}}&to={{toDate}}&count={{count}}`For example:`{{fluentApiHost}}/api/v4.1/event?category=CUSTOM&from=2020-01-01T00:00:00.000Z&to=2020-01-01T23:59:59.999Z&count=1000`

Step arrow right iconSample response


Fluent Commerce

Fluent Commerce