I'm trying to use Log4Javascript for logging logs from JavaScript to a file. I'm using the AjaxAppender
to try to send the data to the server. But whenever i am trying to log the file specified in url field is empty
url = "demo.log";
var ajaxAppender = new log4javascript.AjaxAppender(url);
As it is a POST request I can see in firebug that the data is sent as parameter. But how can the logs be saved in demo.log For each logger a new request is sent.
How can we append the logs in log file. I am new to Log4Javascript. Can anyone please help me on this. Thanks in advance.