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
BedrockMission!

Learn More

View all

Sign in to view all badges

Log implementation in Hobbes.js

Avatar

Avatar
Level 1
shuvamd58718025
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
shuvamd58718025
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
shuvamd58718025
Level 1

14-01-2019

Hi All,

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

Thanks,

Shuvam Das

Replies

Avatar

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
Gaurav-Behl
MVP

Likes

248 likes

Total Posts

1,147 posts

Correct Reply

283 solutions
Top badges earned
Establish
Give back 300
Give Back 50
Give Back 5
Give Back 3
View profile
Gaurav-Behl
MVP

14-01-2019

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

Avatar

Avatar
Level 1
shuvamd58718025
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
shuvamd58718025
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
View profile
shuvamd58718025
Level 1

14-01-2019

Thanks for your reply,will try.