Hello community,
In OutSystems, I believe logs are output when processes are executed.
Does anyone know if logs related to JavaScript are also output when executing JavaScript from client actions or server actions?
If so, what kind of logs are output?
If anyone has any information, I would appreciate it if you could share it with me.
Best regards,
Hiromi
Hello @Hiromi Hayashi
OutSystems does not store JavaScript logs in the platform logs.If you run JavaScript inside Client Actions, any console.log(), errors, or warnings only appear in the browser’s developer console, not in OutSystems logs.
You can use the dev console for that, or if you want to store, you can write custom logic for that
Hello Gourav,
Thank you for your reply! I will use browser’s developer console to check them.
Hi @hiromi
JavaScript in OutSystems always runs on the client side (in the browser). By default, console.log() or JS errors are not recorded in Service Center logs.
If you want JavaScript activity to appear in OutSystems logs, you must explicitly use the OutSystems JavaScript Logger API:
$public.Logger.log("ModuleName", "your message");$public.Logger.error("ModuleName", errorObject);
These logs will be sent to the server and appear in Service Center → Monitoring.
OutSystems JS Logger API reference:
https://success.outsystems.com/documentation/11/reference/outsystems_apis/javascript_api/logger/
Hope this helps
Peter Hieu
Hello Peter,
Thank you very much for your reply! I could understand it well.