DefinitelyTyped/jquery.clientSideLogging/jquery.clientSideLogging-tests.ts
2016-05-10 16:27:59 -07:00

15 lines
367 B
TypeScript

$.clientSideLogging({
log_level: 3,
client_info: {
location:true,
screen_size:true,
user_agent:true,
window_size:false
}
});
$.info({msg:$(this).parents('li').find('input:text').val()});
$.error({msg:$(this).parents('li').find('input:text').val()});
$.log($(this).parents('li').find('input:text').val());
$.post('/log?type=error&msg=YOUR_ERROR_MESSAGE');