Logs for user interactions


#1

Hello, I have an application in react and I need to add observability of both the movements that the user makes and the widgets that are executed or the filters that are applied, how can I integrate logs for that?


#2

Tha is easy, just check the documentation for ChartFactor logs, so you can change the log level of all the toolkit or some specific modules, I recommend you use a Lazy log in your application, like this:


cf.lazyLog("info", () => {
    let expensiveMessage;

    // some expensive computation

    return expensiveMessage;
});

Just in case you want to log a message that is expensive to compute in your app


#3

I understand, it seems to be a new feature, in fact I already used it and it was very simple, thank you very much for your help