Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Log implementation in Hobbes.js

shuvamd58718025
Level 1
Level 1

Hi All,

Does anyone have any idea how to record the errors in the log files while using Hobbes.js.

Thanks,

Shuvam Das

2 Replies
Gaurav-Behl
Community Advisor
Community Advisor

I didn't test this but in theory if jQuery is available to your test case object then you could simply use console logs or hooks to inject custom logger support using slf4j fragments.

try this for console logs -

(function( $ ){

    $.log = function(mess){

      window.console && console.log(mess);

    };

})( jQuery );

$.log("test log");