Hi,

We can log adding following to the jaggery.

var audit = org.wso2.carbon.CarbonConstants.AUDIT_LOG;
audit.info("User : " + jagg.getUser() + ", Action : " +  action);

Here. I want to log who is the user logged in and what action he called.
Would it be ok to add this code to the router jag in app cloud? As I know
all requests/actions go through it. am I right?

Thanks
Amalka

On Fri, Jul 1, 2016 at 12:13 PM, Amalka Subasinghe <ama...@wso2.com> wrote:

> Hi,
>
> I have a Jaggery app deployed in WSO2AS, I want to log user activities via
> block layer to a separate file (to audit.log).
> Please help.
>
> Thanks
> Amalka
>
>


-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to