I'm trying to do this simple test:
var log = log4javascript.getLogger('LeitorLogger'); var ajaxAppender = new log4javascript.AjaxAppender(loggingURL); var jsonLayout = new log4javascript.JsonLayout() ajaxAppender.setSendAllOnUnload(true); console.log(ajaxAppender.isSendAllOnUnload()); ajaxAppender.setLayout(jsonLayout); log.addAppender(ajaxAppender); log.info("Hello World");
But the ajax request occurs immediately when i load the page. Can anyone tell me what is wrong?
Log in to post a comment.
I'm trying to do this simple test:
But the ajax request occurs immediately when i load the page. Can anyone tell me what is wrong?