Hi Devs,

To support logging in the JavaScript used for conditional authentication
(mail thread [1] @ architecture@) we are trying to mimic the
"console.log()" in the JavaScripts.

To achieve this, we have added a binding for a apache commons log object
with key name "console" to nashorn engine. So this support logging with
below syntax withing the JavaScript.

console.log("some test")
console.debug("some test")
console.error("some test")

Above logs will be working as usual when used in Java classes (printed in
wso2carbon.log file and backend console).

Any suggestions?

[1] [Architecture] Conditional Authentication Support on WSO2 Identity
Server

Thanks,
-- 
Maduranga Siriwardena
Senior Software Engineer
WSO2 Inc; http://wso2.com/

Email: [email protected]
Mobile: +94718990591
Blog: *https://madurangasiriwardena.wordpress.com/
<https://madurangasiriwardena.wordpress.com/>*
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to