Sunday, July 17, 2016

Log user events to audit.log file via Jaggery block layer

Let's say I have a Jaggery application deployed in WSO2 AS, I want to log the user events to audit.log file via Jaggery block layer.

We can log adding following code:

var audit = org.wso2.carbon.CarbonConstants.AUDIT_LOG;
audit.info("log message");

No comments: