I have noticed my scheduled event logs are not always found after they have finished. The following 2 scenarios can occur: Subject: A scheduled event which triggers a microflow, which has a log message (info) activity. Scenario 1: I can see in my processed queueTasks logs that the scheduled event has run, but i dont find the log message from the microflow in my app, which does a full retrieve on the entity Logging, without any constraints. When i download the log from Sprintr i sometimes see the message, and some days i dont see it, while the scheduled event is run daily. Scenario 2: If i run the scheduled event microflow manually, i DO see it in all my logs, always. Does anyone have a solution or similar story like the above situation? Many thanks.
asked
Richard Sloeserwij
1 answers
2
Hi Richard,
When dealing with this type of situation, it's a good idea to separate your logging from the main transaction. This way, even if your microflow fails, you'll still have the log.
Another approach is to create a persistable entity to capture the logs along with a timestamp you may delete the logs once in a month.