blob: fe10b973c5677a32b0ba31dc7ce602ae52a982ce [file] [log] [blame]
Siobhan Tullye18b3442014-02-23 14:23:34 -05001log4javascript change log
2-------------------------
3
41.4.6 (19/3/2013)
5- Added fix to handle 1223 status code from XMLHttpRequest in IE
6
71.4.5 (20/2/2013)
8- Changed AjaxAppender to send raw data rather than URL-encoded form data when
9 content-type is not "application/x-www-form-urlencoded"
10
11- Exposed sendAllRemaining() method of AjaxAppender
12
131.4.4 (8/2/2013)
14- Fixed issue with repeated Content-Type headers in AjaxAppender
15
16- Improved uniqueness of PopUpAppender window name
17
181.4.3 (18/9/2012)
19- Added addHeader() and getHeaders() methods to AjaxAppender
20
21- Modified sendAllOnUnload feature of AjaxAppender. It now works in WebKit but
22 at the expense of popping up a confirm dialog. That being the case, it is now
23 disabled by default.
24
25- Removed leaked global variable "initialized"
26
27- Fixed bugs #3528265, #3560924, #3560922, #2805479, #3510639 on Sourceforge
28 Tracker
29
30
311.4.2 (13/10/2011)
32- Fixed JsonLayout trailing comma issue. See
33 http://stackoverflow.com/questions/7735382/asmx-weirdness-deserializing-json-
34 blob-from-log4javascript-logging
35
36- Fixed bugs #3401332, #3185753, #2884623, #2817213 on Sourceforge Tracker
37
38
391.4.1 (23/3/2009)
40- Fixed document.domain/query string bug (#2519903 on Sourceforge Tracker)
41
42- Added isVisible() method to PopUpAppender
43
44- Added check for whether the console has been closed in isVisible() method of
45 InPageAppender
46
47- Included unit tests in the distribution
48
49
501.4 (30/10/2008)
51
52- Added time() and timeEnd() methods to Logger
53
54- Added group() and groupEnd() methods to Logger and support for displaying
55 expandable groups to InPageAppender and PopUpAppender
56
57- Added facility to layout custom fields. A custom field value may now
58 optionally be a function which is passed a reference to the layout and a
59 logging event and run at the time the layout's format method is called
60
61- Added option to XmlLayout and JsonLayout to allow multiple messages to be
62 formatted either as one combined message or multiple messages
63
64- Added code to set log4javascript as a property of the window object. This
65 ensures that if log4javascript is loaded via eval() (e.g. Dojo's module
66 loading system), the log4javascript object is guaranteed to be available even
67 though IE does not evaluate the script in the global scope
68
69- Added useDocumentWrite parameter to constructors and isUseDocumentWrite()
70 and setUseDocumentWrite() methods for InPageAppender and PopUpAppender and
71 added console.html to the build so that the appender may use either the
72 existing document.write method or the external HTML file to build the console.
73 This is to allow support for setting document.domain in the main document,
74 which is impossible with the document.write method
75
76- Added milliseconds property to logging events and changed JsonLayout,
77 XmlLayout and HttpPostDataLayout to include milliseconds by default
78
79- Added layout parameter to AjaxAppender and a toString() method on each layout
80
81- Setting configuration properties in appenders via constructor paramaters has
82 been phased out.
83
84- Added window.unload handler for AjaxAppender to send outstanding messages.
85 Doesn't work in Opera
86
87- Implemented log4j-style hierarchical loggers with additive appenders. For
88 example, a logger called "app.stuff" has as its parent the logger called
89 "app", all of whose appenders it inherits
90
91- Changed XmlLayout and JsonLayout to send data as a key/value pair
92
93- Bugfix for inaccessible error details
94
95- An appender can no longer be added more than once to the same logger
96
97- Multiple messages may now be specified in logger methods
98
99- New conversion character 'a' added to PatternLayout. This is the same as 'm'
100 except that if the first message specified is an array then it treats each
101 element of the array as though it had been passed in as a message parameter
102
103- Command line added to console windows with configurable object expansion
104 depth. Command line presence and object expansion depth are configurable in
105 the appender via setShowCommandLine() and setCommandLineObjectExpansionDepth()
106 methods respectively
107
108- Command line history, navigated by cursor keys and stored in a session cookie
109
110- Firebug-inspired command line functions added: $, dir, dirxml, cd, clear,
111 keys, values, expansionDepth
112
113- Fixes for several bugs in object expansion
114
115- Fix for bug in initialization of InPageAppender in IE 5
116
117- Fix to allow searchable HTML in log entries
118
119- Fix for bug which automatically displayed search next/previous buttons when
120 the search box is clicked regardless of whether there were any matches
121
122- Searches in PopUpAppender and InPageAppender now preserve formatting
123
124- More fixes to interaction of search and severity filters in console window
125 used by PopUpAppender and InPageAppender
126
127- Added SwitchableConsoleAppender that allows flipping from an in-page console
128 to a pop-up console window and back again while retaining state
129
130- Custom events added that are raised when PopUpAppender and InPageAppender
131 windows load and unload, and on the main log4javascript object when the main
132 page loads, when the main page is resized and when log4javascript errors occur
133
134- InPageAppender may now be initialized before the page loads by providing an
135 element id for its container, or omitting the container altogether (in which
136 case the appender is added as a fixed div at the bottom of the page)
137
138- Tweaked PopUpAppender and InPageAppender so that the formatted log message is
139 produced when append() is called rather than when the message is actually sent
140 to the console window, thus allowing reliable temporary switching of layouts
141
142- Much improved scrolling to current search match: scrolls only if part of the
143 search match is not visible and centres around it rather than putting flush to
144 the top left
145
146- Removed setReadable() method from JsonLayout - now specified only in the
147 constructor
148
149- Fixed problem in IE where copying selections of log entries would produce two
150 copies of each log entry
151
152
1531.3.1 (20/11/2006)
154
155- Fix to interaction of search and severity filters in console window used by
156 PopUpAppender and InPageAppender
157
158
1591.3 (19/10/2006)
160
161- Fully tested and supported in IE 7 Beta 3
162
163- Added support for FireBug logging levels in BrowserConsoleAppender
164
165- Added optional limit to the number of log messages stored by PopUpAppender and
166 InPageAppender. When this limit is reached, each new message causes the oldest
167 message to be discarded.
168
169- Exceptions passed into logging methods are now displayed in logging output.
170
171- Added facility to pass objects as well as strings to logging methods.
172 Enhanced conversion character 'm' to PatternLayout to expand object properties
173 in the formatted output
174
175- Added stack trace to error reports (alerts and log entries) in Firefox. This
176 is turned off by default but can be switched on via the new
177 log4javascript.setShowStackTraces function
178
179- Added log4javascript_stub.js to distribution - this has stub versions of all
180 objects and methods in log4javascript.js and can be used as a lightweight
181 replacement for log4javascript.js in production systems
182
183- Added log4javascript_compressed.js to distribution - comments and whitespace
184 are removed, resulting in a 30% smaller file
185
186- Added custom fields to layouts
187
188- Added setReopenWhenClosed and isReopenWhenClosed methods to PopUpAppender to
189 allow log4javascript to open a new pop-up console window automatically at the
190 time of the next log entry after the original window was closed
191
192- Layout.ignoresThrowable implemented to allow Layout/Appender combinations to
193 decide whether to display exceptions
194
195- Added NullLayout that performs no formatting on the logging event
196
197- Lowered BrowserConsoleAppender's default threshold to DEBUG and set its
198 default layout to NullLayout so that unformatted objects can be passed into
199 FireBug
200
201- Renamed InlineAppender to InPageAppender (though InlineAppender still works
202 for the sake of backwards compatibility)
203
204- Cosmetic changes to InPageAppender and PopUpAppender
205
206- Added equals() method to Level
207
208- Added removeAppender() and removeAllAppenders() methods to Logger
209
210- Added extensive test script
211
212- Fixed bug where Appender.setLayout and Appender.setThreshold threw an
213 unhandled error if not supplied with a genuine Layout or Level respectively
214
215- Fixed bug where InlinePopUpAppender and PopUpAppender continue to poll their
216 console windows indefinitely (thus generating warnings) if the console window
217 is closed before it has fully loaded
218
219- Fixed bug in w and W symbols in SimpleDateFormat
220
221- Fixed bug with quotes inside messages in JsonLayout
222
223- Fixed bugs in PatternLayout with built-in DATE format and truncation modifiers
224
225- Changed execution order of callbacks in AjaxAppender so that
226 requestSuccessCallback is guaranteed to be called before the next request is
227 sent
228
229- Changed AjaxAppender so that log messages are formatted immediately before
230 a request is sent rather than when append() is called, thus guaranteeing that
231 changes to the layout take effect immediately
232
233- PopUpAppender windows now have unique names per hostname to prevent clashes
234 from multiple instances of log4javascript running on different servers
235
236- Fixed error in XmlLayout's format method when passed an object
237
238- Fixed errors in JsonLayout's handling of strings containing line breaks and/or
239 double quotes
240
241
2421.2 (21/6/2006)
243
244- Tested in and added workaround for a bug in Opera 9 Beta 2 and Opera 9.0
245
246- Tested in Konqueror 3.4 and 3.5 and added workarounds and fixes for browser
247 bugs
248
249- Added addErrorListener and removeErrorListener methods to log4javascript
250 object to allow custom error handling
251
252- Added close() method to PopUpAppender and InlineAppender
253
254- Added test directory with an HTML page containing automated tests
255
256- Added enable/disable logging checkbox to InlinePopUpAppender and PopUpAppender
257 so that unnecessary messages (for instance, from a timer) can be ignored
258
259- An invalid value supplied to a configuration option setter now leaves config
260 property unchanged rather than reverting to the default
261
262- Fixed bug in PopUpAppender in IE on Windows XP Service Pack 2 when accessed
263 via the file system. The browser by default disables JavaScript in the pop-up
264 window until the user opts to enable it, at which point they would previously
265 see an uncaught error in log4javascript. Now, a proper error message is
266 displayed and the appender is disabled.
267
268- Slight alterations to toolbar in InlineAppender and PopUpAppender - text
269 capitalization and title attributes added to inputs
270
271- toString() method added to all appenders
272
273- Correction to errors in XmlLayout's output
274
275- Documentation corrections and additions
276
277
2781.1.1 (17/5/2006)
279
280- Fixed a minor bug with scrolling to the latest message and added "scroll to
281 latest" checkbox to console window in InlineAppender and PopUpAppender
282
283
2841.1 (16/5/2006)
285
286- Added configuration option setters on Appenders and refactored to prevent
287 config properties being altered directly. Several configuration options
288 may not be altered after the appender has been initialized
289
290- Added scrollToLatestMessage constructor parameter, isScrollToLatestMessage
291 and setScrollToLatestMessage methods to InlineAppender and PopUpAppender
292
293- Added isVisible method to InlineAppender
294
295- Changed setShowOneError to setAlertAllErrors in logLog, with obvious change
296 in logic
297
298- Added layout property key configuration options to layout constructors for
299 JsonLayout and HttpPostDataLayout
300
301- Changed the default timestamp property name to "timestamp" instead of
302 "timeStamp" in JsonLayout and HttpPostDataLayout
303
304- Expanded documentation to include a section in the manual about configuring
305 appenders
306
307- Removed browser sniffing code
308
309
3101.0.1 (30/4/2006)
311
312- Option to have new log messages appear at the top added to InlineAppender and
313 PopUpAppender. This option can be specified in the constructor and can also
314 be toggled via a checkbox in the console window
315
316- PopUpAppender changed to not focus the pop-up console window by default, and
317 the demo page altered to create its own logger with focussing turned on,
318 meaning the behaviour in the demo is essentially unchanged
319
320
3211.0 (26/4/2006)
322
323- Tweaks to default values in PopUpAppender and InlineAppender
324
325- Bugfixes and stylistic tweaks resulting from running JSLint on
326 log4javascript.js
327
328
3291.0 beta 2
330
331- Show/hide button removed from InlineAppender, replaced by show() and hide()
332 methods on the InlineAppender object
333
334- batchSeparator, batchHeader and batchFooter added to Layout and applied to
335 JsonLayout - a batch of JSON log messages is now created as an array literal
336
337
3381.0 beta
339
340- TRACE level added, since this was added to log4j in 1.2.12
341
342- PopUpAppender default settings bugfix
343
344- getLevel method added to Logger
345
346- Tweak to vertical alignment of checkboxes and padding of buttons in
347 InlineAppender and PopUpAppender
348
349- Fixed getDefaultLogger and getNullLogger to return loggers other than the
350 root logger
351
3520.96
353
354- Moved console.html to inline document.writes in log4javascript.js
355
356- Fixed getDefaultLogger to return the same object on successive calls
357
358- Fixed scrolling issue in Opera InlineAppender and PopUpAppender
359
360- Scrollbars are now automatic on InlineAppender and PopUpAppender, i.e. they
361 only appear when required
362
363- Fixed bug where regex searches were not applied to new log entries in
364 InlineAppender and PopUpAppender
365
366- Changed Safari font size in InlineAppender and PopUpAppender
367
3680.95
369
370- AjaxAppender enhancements:
371 - waitForResponse added
372 - timer added
373
374- layout parameter added to all appender constructors
375
3760.94
377- First publicly available version
378- IE 5 support added
379- Full support for wrapping in IE added for InlineAppender and PopUpAppender