By default, HttpPostDataLayout sends the date as the "timestamp" parameter. The value is a number representing the number of milliseconds elapsed since January 1st 1970, like the value you get from the getTime() method of Date objects in JavaScript.
The problem you're getting with PatternLayout is a bug in the AjaxAppender that is fixed in the next version (which I've been developing on and off for a while). I can send you a patched version of 1.4.1 if you need.
Tim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great tool & thanks for writing it!
I have 2 problems with AjaxAppender.
First of all, by default I only get very limited data being sent to the server - no date or time - which I thought was default with HttpPostLayout.
Secondly, when I try to set the layout myself:
I get a javascript error on page load:
Would appreciate any help.
Thanks
Abo
By default, HttpPostDataLayout sends the date as the "timestamp" parameter. The value is a number representing the number of milliseconds elapsed since January 1st 1970, like the value you get from the getTime() method of Date objects in JavaScript.
The problem you're getting with PatternLayout is a bug in the AjaxAppender that is fixed in the next version (which I've been developing on and off for a while). I can send you a patched version of 1.4.1 if you need.
Tim