Expand my Community achievements bar.

Log implementation in Hobbes.js

Avatar

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

Avatar

Level 10

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");