DefinitelyTyped/jquery.clientSideLogging/jquery.clientSideLogging-tests.ts
2013-01-26 19:46:12 -02:00

17 lines
422 B
TypeScript

///<reference path="jquery.clientSideLogging.d.ts" />
$.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');