Debian Codegraph @

Changes

raw ◀ ▶
1 Debian patch touch this file
1 1.57 2022-10-21
2 - fix tests so work on Perl 5.37.3 - thanks @tonycoz
3
4 1.56 2022-09-02
5 - fix repo metadata - thanks @mschilli for report
6
7 1.55 2022-06-02
8 - fix Appender::File bug on Windows when different volume
9 - add autoflush option to Log::Log4perl::Appender::Screen - thanks @abraxxa
10 - stderr option for Appender::Screen* can take hash - thanks @bmodotdev
11
12 1.54 2021-02-06
13 - set real versions for some modules - thanks @eserte for report
14
15 1.53 2020-09-17
16 - fix the broken "improved detection of modules" change
17
18 1.52 2020-09-07
19 - fix tests to work better on Windows
20 - doc fixes - thanks @whosgonna, @plicease, @simon04, @willsheppard
21 - improve detection of layout modules already available - thanks @KES777
22 - remove circular dependency in Log::Log4perl::Appender - thanks @lharey
23
24 1.51 2020-09-05
25 - test improvements removing race conditions
26 - minimum Perl 5.6
27
28 1.50 2020-07-22
29 * (ms) Fix for slow unlinking on Windows test - thanks @zhiyuan-lin
30 * (ms) [rt.cpan.org #121346] Gabor Kanizsai reported a regression
31 with empty messages logged via syswrite(). Fixed with test
32 case.
33
34 1.49 (2017/02/20)
35 * (ms) Adapted to perl 5.24 which balks at syswrite/utf8:
36 https://github.com/mschilli/log4perl/issues/78
37
38 1.48 (2016/11/14)
39 * (ms) [rt.cpan.org #117377] Moved PatternLayout's documentation of
40 DateFormat features to DateFormat.pm to avoid duplication
41 and keep the two parts consistent, as suggested by Max Carey.
42 * (ms) [rt.cpan.org #114822] Split two lines with CVS-sensitive
43 $Log.. variables into two parts.
44 * (ms) Semaphore issue fixed in Synchronized (reported by
45 Siarhei Kuchynski and Martin Köhler):
46 https://github.com/mschilli/log4perl/issues/72
47 * (ms) header_text now works with syswrite (reported by Tom Metro):
48 https://github.com/mschilli/log4perl/issues/73
49
50 1.47 (2016/03/17)
51 * (ms) [rt.cpan.org #102647] Slaven Rezic fixed a test
52 case for file permissions
53 * (ms) Fixed synopsis code in Log::Log4perl::Appender::DBI,
54 reported by Chris Collins.
55 * (ms) Added suggestion by Dylan Doxey to test for both MSWin32 and
56 cygwin to detect windows-like systems for which tests need
57 to be skipped.
58 * (ms) [rt.cpan.org #110915] Fixed "Redundant argument in sprintf"
59 warning caused by DateFormat.pm with %d{Z} placeholders,
60 reported by Alexander Hartmaier.
61 * (ms) [rt.cpan.org #110512] Felix Ostmann fixed a broken error
62 message raised when a boolean filter can't be found.
63 * (ms) All hash traversals in Config.pm now done via "sort keys"
64 to make sure we can reliably reproduce potential problems.
65
66 1.46 (2014/10/31)
67 * (ms) Fixed Gianni's utc time test for machines set to utc time.
68
69 1.45 (2014/10/25)
70 * (ms) fgeueke provided a pull request for short-circuiting boolean
71 filters: https://github.com/mschilli/log4perl/pull/48
72 * (ms) [rt.cpan.org #94009] Tim Bunce had requested that the
73 PatternLayout's %m specifier allow for fixed indentation,
74 variable indentation, and at the same time permit the use
75 of the chomp option. Added with tests and docs.
76 * (ms) Gianni Ceccarelli added the log4perl.utcDateTimes config
77 option to select UTC instead of localtime:
78 https://github.com/mschilli/log4perl/pull/53
79 * (ms) @bokutin fixed Catalyst.pm buffer flush:
80 https://github.com/mschilli/log4perl/pull/51
81 https://github.com/mschilli/log4perl/issues/54
82
83 1.44 (2014/05/17)
84 * (ms) Skipped mkpath umask tests on Win32 which doesn't support it
85 properly.
86 * (ms) Requiring core module File::Path 2.06_06, which has remove_tree()
87 (fixes test suite for ancient perl-5.6.2).
88 * (ms) Brian Wightman fixed temporary file cleanup in the test suite
89 for Win32: https://github.com/mschilli/log4perl/pull/45
90
91 1.43 (2014/03/16)
92 * (ms) Added %m{indent} to indent multi-line messages according to the
93 PatternLayout (inspired by Wolfgang Pecho)
94 * (ms) [rt.cpan.org #84818] Deven T. Corzine suggested adding
95 a conditional use Win32 on Win32 platform to fix a
96 chicken-and-egg problem with the resurrector.
97 * (ms) Brian Wightman fixed Win32 log file cleanup in test suite
98 https://github.com/mschilli/log4perl/pull/39. New FAQ
99 entry on Win32 log file cleanup.
100
101 1.42 (2013/07/25)
102 * (ms) BenRifkah Bergsten-Buret added ';!' for property configurator
103 comment delimiters:
104 https://github.com/mschilli/log4perl/issues/25
105 * (ms) [rt.cpan.org 84723] Suppress error if close() in the file
106 appender in pipe mode returns "No child processes".
107 * (ms) Ronald J Kimball fixed a bug with the file appender's
108 create_at_logtime option in combination with
109 recreate_check_signal:
110 https://github.com/mschilli/log4perl/pull/28
111 * (ms) Fixed additivity() modifications after init():
112 https://github.com/mschilli/log4perl/issues/29
113 * (ms) [rt.cpan.org 87191] Applied patch by Zefram for better
114 maintainable line number checks (and coping with 5.19 buggy
115 line numbering, cough, cough).
116
117 1.41 (2013/04/21)
118 * (ms) [rt 81731] Added 'trace' level to Log4perl::Catalyst, as
119 suggested by Ashley Pond.
120 * (ms) Alexander Hartmaier added Log::Log4perl::Filter::MDC to filter
121 based on MDC key/value
122 * (ms) [rt.cpan.org 83193] The file appender now ignores owner/group
123 settings on all types of existing file system entries (previously,
124 this was only the case for actual files).
125 * (ms) [rt.cpan.org 84289] Documented Level.pm's isGreaterOrEqual()
126 comparator.
127 * (ms) [rt.cpan.org #84725] Fixed test suite to allow running tests
128 in parallel via HARNESS_OPTIONS=j10:c HARNESS_TIMER=1.
129 Reported by Brendan Byrd.
130
131 1.40 (2012/11/30)
132 * (ms) Denis Ibaev added support for DBI appender attributes.
133 * (ms) Chris Weyl put in a workaround for a DBD::CSV bug that
134 tripped our test suite.
135 * (ms) Tim Bunce provided a patch using Carp::confess() instead of die()
136 on the "Root Logger not initialized" message which pops up
137 during global construction to make it easier to find the
138 offending code.
139 * (ms) Cygwin masks MSWin32-ishness by setting $^O to "cygwin" and not
140 to "Win32". Modified check to catch both.
141 * (ms) Fixed unescaped brace in regex that perl 5.17.4 was complaining
142 about.
143
144 1.39 (2012/10/27)
145 * (ms) Markus Benning reported that logcroak/confess/die stringify
146 their arguments, which gets in the way when throwing data
147 structures as exceptions. Added flag $STRINGIFY_DIE_MESSAGE.
148 * (ms) [rt.cpan.org #80086] David Morel pointed out misleading
149 documentation in the Limiter composite appender. Fixed docs
150 and added C<appender_method_on_flush> parameter to support
151 appender flush calls by the limiter.
152 * (ms) [rt.cpan.org #79960] Fabrice Gabolde asked for %X{x} to be
153 interpolated as NULL for the database appender if its value is
154 undef. The DBI appender now inits PatternLayout with the
155 undef_column_name parameter set to undef (defaults to "[undef]").
156 * (ms) Updated license/copyright/author sections in all files using
157 licensizer and .licensizer.yml.
158 * (ms) Skipped log file recreation test on Win32 as it won't remove
159 busy files anyway.
160
161 1.38 (2012/09/23)
162 * (ms) Bob Kleemann reported that logdie() in wrapper classes
163 printed incorrect caller lines. Fixed by adding
164 caller_depth_offset() utility to Log4perl.pm.
165 * (ms) Meir Guttman reported a use case for logging messages
166 with dynamic levels on [email protected].
167 Added to manual page.
168 * (ms) Implemented suggestion by Neil Hooey to check for and report
169 undefined message elements before they're assembled in Appender.pm
170 and a warning is issued without a proper code location:
171 https://github.com/mschilli/log4perl/issues/15
172 * (ms) [rt.cpan.org #78734] Added spell check on filter parameter names
173
174 1.37 (2012/05/30)
175 * (ms) [rt.cpan.org #75655] Meir Guttman found the module to make
176 Log::Log4perl::Appender::ScreenColoredLevels work on Win32,
177 updated docs.
178 * (ms) [rt.cpan.org #76827] UTF-8 encoded configuration files are
179 now supported (see Log::Log4perl::Config).
180 * (ms) [rt.cpan.org #77501] Unescaped left brace in regex is deprecated
181 with perl 5.17. Times we live in.
182
183 1.36 (2012/02/21)
184 * (ms) [rt.cpan.org #74833] Reini Urban fixed "defined @array" for
185 perl 5.16
186 * (ms) [rt.cpan.org #74836] Cope with Carp's questionable decision to
187 add a trailing dot to its messages.
188
189 1.35 (2012/01/03)
190 * (ms) [rt.cpan.org #73462] Changed logwarn/logcluck/logcarp/error_warn
191 to warn() unconditionally and send the message to log4perl which
192 will log it only if the log level conditions are met.
193 * (ms) [rt.cpan.org #73598] Gerda Shank reported test suite problems
194 with DBD::CSV-0.26. Bumped up to DBD::CSV-0.33 if installed.
195
196 1.34 (2011/11/04)
197 * (ms) InternalDebug now replaces all instances of INTERNAL_DEBUG,
198 not just the first one.
199 * (ms) Added test case for get_logger() with a ref() on the actual
200 object instead of on a static category. Updated docs.
201 * (ms) %d{e} in PatternLayout now returns epoch seconds
202 * (ms) [RT 72056] Messages blocked by an appender threshold are no
203 longer passed on to the L4p::Appender::Buffer as undefined
204 entries.
205
206 1.33 (2011/05/31)
207 * (ms) [RT 67132] Applied patch by Darin McBride to allow for
208 empty syswrite messages in the file appender.
209 * (ms) [RT 68105] Fixed init-hash handling of subroutine references,
210 reported by Frew Schmidt.
211 * (ms) Mike Schwern noticed confusing DESTROY calls to clean up loggers
212 and appenders (http://stackoverflow.com/questions/5914088 and
213 https://github.com/mschilli/log4perl/issues/7), so I put on my
214 hazmat suit and cleaned it up. Now perl's garbage collector takes
215 care of disposing of logger and appender carcasses.
216 * (ms) Added Log::Log4perl->remove_logger($logger) to remove a logger
217 from the system.
218
219 1.32 (2011/02/26)
220 * (ms) Fixed %T caller_depth with wrapper_register(), reported
221 by David Christensen.
222 * (ms) [RT 63053] Fixed for qw() {} deprecated (Todd Rinaldo)
223 * (ms) [RT 62674] Fixed call to deprecated form of UNIVERSAL::can (Karen
224 Etheridge).
225 * (ms) [RT 62896] Log::Log4perl::Appender::ScreenColoredLevels now
226 inherits from Log::Log4perl::Appender::Screen and therefore
227 supports the utf8 flag.
228 * (ms) [RT 64318] Andrew Sayers provided a better error message for
229 "threshold needs to be uppercase".
230 * (ms) CharleyDixon fixed LOGWARN when :no_extra_logdie_message is
231 in use to no longer exit().
232
233 1.31 (2010/10/27)
234 * (ms) Fixed the number of skipped tests for Windows for previous fix
235 of [RT 60665].
236
237 1.30 (2010/08/30)
238 * (ms) [RT 60665] HUP handlers are stacked on top of each other now,
239 to make sure that multiple file appenders recreate multiple
240 files and not just one (patch provided by Karen Etheridge).
241 * (ms) [RT 60197] Fixed uninitialized value warnings with
242 the multiline appender and provided a test case (patch provided
243 by Karen Etheridge)
244 * (ms) [rt.cpan.org #59617] Fixed system-wide threshold without appender
245 thresholds. Bug reported by Dmitry Bigunyak.
246 * (ms) [rt.cpan.org #24884] Using require() instead of incomplete
247 logic in L4p::Util::module_available(). local __DIE__
248 handler takes care of user-defined __DIE__ handlers
249 ignoring $^S (suggested by Eric Wilhelm and others).
250 * (ms) [rt.cpan.org #60386] Fixed init_and_watch() which
251 double-bumped the caller_level and led to uninitialized
252 values in the pattern layout. Thanks to Mitja Bartsch for
253 the report.
254 * (ms) Applied patch by Karsten Silkenbäumer to add an optional
255 $log_dispatch_level to create_custom_level(). Updated
256 documentation.
257
258 1.29 (2010/06/16)
259 * (ms) Added documentation on how to use Log4perl's :easy macros
260 with Catalyst in Log::Log4perl::Catalyst.
261 * (ms) wrapper_register() now deals with caller_depth automatically.
262 Backwards compatibility with old wrapper classes using
263 caller_depth directly is provided. Documentation has been
264 updated.
265 * (ms) Felix Antonius Wilhelm Ostmann reported Resurrector.pm
266 crashes, fixed as suggested by setting the %INC value to
267 the module path.
268 * (ms) Another caller_depth fix in Log::Log4perl::Catalyst.
269 * (ms) Fixed logdie() caller_depth bug reported by Rob Retter.
270 * (ms) [RT 56145] Saving errstr in DBI appender to survive ping()
271 * (ms) Added INTERNAL_DEBUG env variable to test suite triggering
272 all _INTERNAL_DEBUG statements to be printed for better
273 error diagnosis on misbehaving systems.
274
275 1.28 (2010/02/24)
276 * (ms) Fixed caller stack with Buffer composite appender
277 * (ms) Fixed 'local caller_depth' error in various places. First
278 localizing a variable and then increasing it is incorrect,
279 as this ignores previous settings. The correct way of
280 increasing the caller level is: 'local depth = depth + 1'.
281 * (ms) Added Log::Log4perl::Catalyst for use in Catalyst applications.
282
283 1.27 (2010/02/07)
284 * (ms) ***WARNING: This might break backward compatibility
285 with some wrapper classes.
286 [RT 52913] Fixed category fetching in
287 wrapper classes (reported by Martin Evans). Wrapper classes
288 now need to call Log::Log4perl->wrapper_register to adapt
289 get_logger() category fetching. Detailed docs under
290 "Using Log::Log4perl with wrapper functions and classes"
291 * (ms) Made meta tag compatible with MakeMaker versions < 6.50
292 (ms) [RT 52083] Fixed manifest glitch from 1.26 (reported by
293 Lars Thegler).
294 * (ms) Added note to FAQ on 'no init happened' warnings for API
295 initializations, as suggested by Malcolm Nooning.
296 * (ms) Applied patch by Christopher Mckay which sets
297 Log4perl::Logger::INITIALIZED only if it's fully initialized.
298 * (ms) Emmanuel Rodriguez suggested changing TestBuffer's reset()
299 method to leave the logger population alone. Added clear()
300 to accomodate the need for a single buffer reset.
301 * (ms) Xavier Caron added %p{1} to allow abbreviated priority
302 strings in the pattern layout.
303 * (ms) Redid composite appenders to address problems with incorrect
304 caller() data. L4p now supports a $cache parameter to be
305 passed to the log() function, which stores the completely
306 rendered message and can be passed to log_cached() later on.
307
308 1.26 (2009/11/22)
309 * (ms) [RT 50495] Perl code in the config file is now evaluated/
310 compiled after the configuration parser has done its work,
311 opening up Perl subroutines to all configuration parsers, not
312 just PropertyConfigurator. Configuration subs for cspecs,
313 filter, warp_message and appender triggers are sheltered.
314 The previous, flawed implementation surfaced while using
315 a 'trigger' category, reported by Olivier Bilodeau.
316 * (ms) [RT 50090] Added non-portable linebreaks to PatternLayout
317 (requested by Zdeněk Juran).
318 * (ms) [RT 50094] Docfix for PatternLayout in main manpage (spotted
319 by Peter Rabbitson).
320 * (ms) [RT 28679] Added exists() to "Threshold" keyword uppercase
321 check.
322 * (ms) Took out Class::Prototyped testcase after it got all weird
323 and introduced backward-incompatible changes.
324
325 1.25 (2009/09/27)
326 * (ms) Appender::File is now closing (or sysclosing) the file
327 on file_close() instead of just undef'ing the handle.
328 * (ms) Added l4p-tmpl helper script to help whipping up a new
329 log4perl configuration file.
330 * (ms) Fixed uninitialized warning on XML configuration files,
331 reported by jbkilian on the sourceforge mailing list.
332 * (ms) Applied patch [RT 43426] by AFF <[email protected]> to have
333 appender_thresholds_adjust return number of appenders changed.
334 * (ms) [RT 34400] New :nostrict target which allows redefining a
335 category within a Log4perl configuration file without error
336 or even a warning.
337 * (ms) [RT 34401] Applied patch by Jae Gangemi, who fixed
338 code references in @INC on Win32 systems.
339 * (ms) [RT 32259] Patternlayout now supports %R, which returns the
340 number of milliseconds elapsed from last logging event to
341 the current logging event (thanks to Emmanuel Rodriguez for
342 the patch).
343 * (ms) [RT 30899] Color configuration and attribute support
344 added to ScreenColoredLevels appender by Jason Kohles.
345 * (ms) [RT 28987] If UNIVERSAL is available, appender existence is
346 now verified by checking can() on the appender's new()
347 method (applied modified patch by Gabriel Berriz).
348
349 1.24 (2009/07/08)
350 * (ms) Fixed bug with Log::Log4perl::Util::tmpfile_name which
351 surfaced on VMS, reported by Ben Humphreys.
352 * (ms) Fixed system-wide threshold to no longer lower appender
353 thresholds. Bug reported by Jean-Denis Muys.
354 * (ms) Added benchmark to determine impact of eval-free handlers
355 * (ms) Merged with eval_free branch. Now there are no more
356 eval("") statements left in the code, making it much easier
357 to debug. Performance on init() is about the same, performance
358 on init_and_watch() (noops and logged statements alike) is
359 25% slower but still in the range of 400,000/sec on my
360 1.80Ghz CPU.
361
362 1.23 (2009/05/12)
363 * (ms) DBI-1.608 removed a DBD::File 'feature' that allowed leaving
364 out parameters in a bound execute(). This caused the test
365 suite to fail (http://groups.google.com/group/perl.cpan.testers/browse_thread/thread/af1f5c875165c387). Fixed the test cases to pass the correct
366 number of parameters every time.
367 * (ms) Better error message in the DBI appender on bad SQL, missing
368 bind parameters, or other execute() errors.
369 * (ms) Made DBI test suite more robust against preexisting conditions
370 * (ms) Added force_next_check() for init_and_watch(), cleaned up
371 Config::Watcher code.
372 * (ms) Fixed test suite to run on Strawberry Perl on Win32 (reported
373 by kmx on https://rt.cpan.org/Ticket/Display.html?id=45983)
374 * (ms) Added 'utf8' option to screen appender and easy mode, some of
375 it suggested in
376 http://rt.cpan.org/Public/Bug/Display.html?id=36673 by
377 Shantanu Bhadoria.
378
379 1.22 (2009/05/02)
380 * (ms) is_xxx() returned true prior to L4p initialization. Fixed it
381 and adapted test suite.
382 * (ms) Added test cases on syswrite in recreate mode
383 * (ms) Applied patch by Jens Berthold <[email protected]> to
384 avoid semaphore cleanup in spawned children.
385 * (ms) Added %m{chomp} feature, 'message_chomp_before_newline' option,
386 and documentation on newlines and logging messages, all
387 suggested by Tim Bunce (see PatternLayout).
388
389 1.21 (2009/03/16)
390 * (ms) Documentation typos fixed, reported by Breno G. de Oliveira
391 [rt.cpan.org #42428].
392 * (ms) Fixed DBI appender error message, bug reported by DavidZ.
393 * (ms) Fixed [rt.cpan.org #43740] reported by Martin Koehler. Now using
394 proper POSIX return code EEXISTS instead of error message
395 depending on English locale.
396
397 1.20 (2008/12/09)
398 * (ms) Using semctl to reset the value of the semaphore in the
399 Synchronized appender to prevent "Numerical result out of
400 range" problem caused by an unbalanced SEM_UNDO when
401 incrementing it. Reported by John Little.
402 * (ms) Added parameters in curly braces to cspecs in PatternLayout.
403 * (ms) As explained in http://rt.cpan.org/Ticket/Display.html?id=41505
404 the latest LWP release (5.822) got rid of all of its internal
405 debugging functions, making infiltrate_lwp() and its test
406 case useless. Disabling it for LWP>=5.822.
407
408 1.19 (2008/10/22)
409 * (ms) Applied patch by Peter Rabbitson, which fixes the caller()
410 level when calling get_logger() on a subclass of Log4perl.
411 * (ms) Added documentation on is_xxx() methods and clarified that
412 it doesn't necessarily mean that a message gets logged if
413 they're returning true (requested by Conway Allen via
414 [rt.cpan.org #39085].
415 * (ms) Applied patch by Lee Johnson to appender_by_name() to allow
416 for undefined appender names without issuing a warning,
417 which was occurring with Catalyst::Log4perl.
418 * (ms) Added docs on numerical levels and level strings in
419 Log::Log4perl::Level.
420 * (ms) Applied patch by Anthony Foiani for support of literal
421 text in DateFormat format strings.
422
423 1.18 (2008/08/23)
424 * (ms) Added explanation that categories and loggers are the same
425 thing (thanks to Rabbit).
426 * (ms) Fixed t/053Resurrect to work with 5.005_03
427 * (ms) Added preinit_callback function for init_and_watch()
428 * (ms) Applied patch by Andy Grundman which speeds up is_LEVEL()
429 calls by skipping unnecessary string concatenations
430 (http://rt.cpan.org/Ticket/Display.html?id=38537).
431 * (ms) Applied patch by Jae Gangemi addding a no_warning option to the
432 socket appender
433 (http://rt.cpan.org/Ticket/Display.html?id=34399).
434
435 1.17 (2008/07/19)
436 * (ms) Fixed test suite to run on Strawberry Perl on Win32.
437 * (ms) Added 'l4p' as a valid prefix in configuration files (equal
438 to 'log4j' and 'log4perl' now).
439
440 1.16 (2008/05/15)
441 * (ms) Changed appender destruction during cleanup to show warning
442 messages thrown by destructors. Previously L4p ignored these
443 messages which caused failed DB flushes to go unnoticed with
444 the DB appender.
445 * (ms) Added explanation for Log4perl messages during global
446 destruction to FAQ.
447 * (ms) Corrected 'Trapper' listing in FAQ, thanks to Christian Reiber.
448 * (ms) Applied patch by Mitchell Perilstein for 5.005it and the
449 two-argument binmode() that 5.005 doesn't support.
450 (http://rt.cpan.org/Ticket/Display.html?id=34051)
451 * (ms) Applied patch by Emmanuel Rodriguez (POTYL) doing away with
452 hard-coded line numbers in 024WarnDieCarp.t to make it work
453 cpan2rpm for building RPM packages
454 (http://rt.cpan.org/Public/Bug/Display.html?id=35370)
455 * (ms) Fixed recreate_check_interval = 0 bug reported by
456 Bill Moseley.
457 * (ms) Added 'header_text' parameter to the file appender to
458 have it write a header every time it opens (or re-opens)
459 a new log file (suggested by Steven Lembark).
460
461 1.15 (2008/02/10)
462 * (ms) appender_thresholds_adjust() with a parameter of 0 now
463 does nothing (requested by Oliver Koch).
464 * (kg) Added 'defer_connection' to Socket appender so it's more useful
465 under Apache.
466 * (ms) [rt.cpan.org #32738] fixed caller_depth for error_warn()
467 (reported by Felix Antonius Wilhelm Ostmann)
468 * (ms) [rt.cpan.org #32942] fixed get_logger() for subclassed Log4perl
469 (reported by Felix Antonius Wilhelm Ostmann)
470
471 1.14 (2007/11/18)
472 * (ms) Fixed test suite bug which surfaced in Darwin because temporary
473 files contain '++' which freaked out the sloppy regex match.
474 * (ms) Better handling of empty config files (reported by Robert Raisch)
475 * (ms) Rewrote the Synchronized appender to use semaphores exclusivly
476 (got rid of IPC::Shareable).
477 * (ms) Added Log::Log4perl::Util::Semaphore for easy semop handling
478 * (ms) Fixed t/026FileApp.t to work on MSWin32.
479
480 1.13 (2007/10/11)
481 * (ms) Another doc fix by Craig
482 * (ms) Applied Fedora 7 patches
483 * (ms) Added create_at_logtime option to file appender
484 * (ms) Added trace level color (yellow) in ScreenColoredLevels
485 appender as suggested by Arvind Jayaprakash in
486 https://sourceforge.net/tracker/index.php?
487 func=detail&aid=1791445&group_id=56939&atid=482388
488
489 1.12 (2007/06/23)
490 * (ms) Added Log::Log4perl::Resurrector to resurrect commented-out
491 Log4perl statements in all subsequently loaded modules (allows
492 for deploying L4p-enabled CPAN modules without requiring L4p).
493 * (ms) Added ALWAYS easy mode macro (level=OFF)
494 * (ms) Fixed logconfess() frame level bug reported by Ali Mesdaq.
495 Added test case.
496
497 1.11 (2007/05/29)
498 * (ms) Added PatternLayout::Multiline code by Cory Bennett to
499 render multiline messages.
500 * (ms) Added log level TRACE (lets through even more messages
501 than DEBUG) (suggested by Craig).
502 * (ms) Added 'syswrite' flag to file appender to have it use
503 'syswrite' instead of 'print', avoiding buffered or
504 interleaving messages originating from different processes
505 (thanks to Evan Miller).
506
507 1.10 (2007/03/27)
508 * (kg) Nikita Dedik pointed out that Saturday is missing from
509 @Log::Log4perl::DateFormat::WEEK_DAYS
510 * (ms) Scott Cline noticed a potential problem with the DBI
511 appender reconnection logic in 'buffered' mode. Applied
512 a patch.
513 * (ms) Changed DBI reconnect logic to perform even if the DB
514 is pingable again.
515 * (ms) Applied code by Valerio Valdez Paolini with modifications
516 to PropertyConfigurator.pm to allow pulling values from
517 the property configurator by path.
518
519 1.09 (2007/02/07)
520 * (ms) Added $^S check to FAQ, as suggested by J. David Blackstone.
521 * (ms) Applied Robert Jacobson's patch for the "DDD" formatter
522 in L4p::DateFormats, which now formats the day-of-year values
523 numerically and precedes them with zeroes if necessary.
524 * (ms) Added %M{x} PatternLayout notation as requested by
525 Ankur Gupta.
526 * (ms) Another Win32 test suite fix, no longer deleting an open
527 file but moving it aside (rt.cpan:23520).
528
529 1.08 2006/11/18
530 * (ms) Applied test suite patch by Lars Thegler for
531 ancient perl 5.005_03.
532 * (ms) Applied patch by Jeremy Bopp to fix test suite running
533 under Cygwin.
534 * (ms) Fixed documentation bug in L4p:Appender::File,
535 s/recreate_signal/recreate_check_signal. Thanks to
536 Todd Chapman and Robert Jacobson for reporting this.
537 * (ms) Fixed init(), which now deletes any config file watchers
538 left over from previous init_and_watch() calls. Reported
539 by Andreas Koenig who saw sporadic errors in the test suite,
540 thanks!
541
542 1.07 2006/10/11
543 * (ms) Removed checks for unlink() in t/017Watch.t since they
544 failed on win32.
545 * (ms) Fixed doc bug in Appender::File reported by Robert
546 Jacobson.
547 * (ms) Added FAQ on why to use Log4perl and not another
548 logging system on CPAN.
549 * (ms) Fixed %M, %L, etc. level in logcarp/cluck/croak/confess
550 (thanks to Ateeq Altaf)
551 * (ms) Autocorrecting rootlogger/rootLogger typo
552 * (ms) Better warning on missing loggers in config sanity check
553
554 1.06 2006/07/18
555 * (ms) Applied patch by Robert Jacobson to fix day-of-year in
556 DateFormat, which was off by one.
557 * (ms) Added FAQ on syslog
558 * (ms) umask values for the file appender are now also accepted
559 in octal form (0xxx).
560 * (ms) The file appender now accepts owner/group settings of
561 newly created log files.
562 * (ms) Fixed appender cleanup, a bug caused composite appenders
563 to be cleaned up during global destruction, which caused an
564 ugly segfault with the Synchronized appender on FreeBSD.
565
566 1.05 2006/06/10
567 * (ms) Added recreate signal handler to L4p::Appender::File for
568 newsyslog support. Two new FAQ entries on dealing with
569 newsyslog and log files being removed by external apps.
570 * (ms) L4p::Config::Watch no longer sets the global $SIGNAL_CAUGHT by
571 default but uses an instance variable instead to prevent
572 clobbering L4p's config and watch mechanism.
573 * (ms) die() on undefined configuration (rt 18103 by [email protected])
574 * (ms) Hugh Esco submitted a FAQ on where to put logfiles
575 * (ms) Applied patch provided by Chia-liang Kao to suppress an error
576 message and skip tests in the suite when DBI is missing.
577
578 1.04 2006/02/26
579 * (ms) Duplicate log4perl directives, which previously just overwrote
580 existing ones, are no longer permitted and cause the config
581 parser to throw an error.
582 * (ms) If a conversion pattern was specified twice in a config
583 file, the output was "ARRAY(0x804da00)" (bug reported by
584 Bill Mason). Now, gobbling up property configurator values
585 into an array is limited to appender properties and
586 excludes the conversion pattern.
587 * (ms) Multiple calls to import (usually happens if 'use L4p' gets
588 called twice within the same namespace) caused nasty warnings,
589 bug reported by Greg Olszewski. Fixed by ignoring subsequent
590 calls from the same package to import().
591 * (ms) Changed rendering of logdie/warn/cluck/croak/... messages
592 to fix a bug reported by Martin J. Evans.
593 * (ms) Added a L4p::Appender::String appender to handle the
594 rendering internally.
595 * (ms) Documentation patch by Matisse Enzer on increased/
596 decreased log levels.
597 * (ms) Fixed stack trace level of logcarp()
598 * (ms) Carl Franks reported that the test suite failed on WinXP SP2
599 because of a hardcoded /tmp - fixed by File::Spec->tempdir().
600 * (ms) Added reconnect_attempts and reconnect_sleep parameters to
601 DBI appender.
602 * (ms) Bugfix for rt.cpan.org #17886 (tmp files in test suite)
603
604 1.03 (2006/01/30)
605 * (ms) Some perl-5.6.1 installations have a buggy Carp.pm. Skipping
606 4 test cases for these. Reported by Andy Ford and Matisse Enzer.
607 * (ms) The DBI appender now reconnects on stale DB connections.
608 * (ms) Fixed Win32 test bug as reported in
609 http://rt.cpan.org/Ticket/Display.html?id=17436 by barbie.
610 Instead of deleting a file still in use by an appender (which
611 Windows doesn't like), the file gets now truncated.
612
613 1.02 (2005/12/10)
614 * (ms) Adapted t/006Config-Java.t to cope with Win32 path separators
615 * (ms) Corrected typo in Chainsaw FAQ, reported by Bernd Dirksen.
616 * (ms) Brian Edwards noticed that (Screen, File) were missing a
617 base class declaration, causing $logger->add_appender() to
618 fail. Fixed with test case.
619 * (ms) Log::Log4perl::Appender::File now handles the case where the
620 logfile suddenly disappears.
621 * (ms) Fixed section indentation in main man page
622 * (ms) Converted Ceki's last name to UTF-8 (a historic step!)
623
624 1.01 (09/29/2005)
625 * (ms) Added 'utf8' and 'binmode' flags to Log::Log4perl::Appender::File
626 per suggestion by Jonathan Warden.
627 * (ms) Made test cases 003Layout.t and 033UsrCspec.t resilient against
628 broken ActiveState 5.8.4 and 5.8.7.
629 * (ms) Skipped failing test cases for 5.005, looks like the caller() level
630 in carp() is wrong, but not worth fixing.
631 * (ms) Fixed the bug with the caller level of the first
632 log message sent after init_and_watch() detected a change. Added
633 test case to 027Watch2.t.
634 * (ms) Added FAQ on UTF-8.
635 * (ms) Applied patch by David Britton, improving performance during
636 the init() call.
637 * (ms) Fixed bug https://rt.cpan.org/Ticket/Display.html?id=14776
638 to prevent it from modifying $_. Thanks to Steffen Winkler.
639
640 1.00 (08/13/2005)
641 * (ms) Added tag qw(:no_extra_logdie_message) to suppress duplicate
642 die() messages in scripts using simple configurations and LOGDIE().
643 Added logexit() as an alternative way.
644 * (ms) Fixed bug with logcarp/croak/cluck, which were using the
645 wrong Carp level.
646 * (kg) Fixing bug in Appender::Limit regarding $_ scope
647 * (ms) corrected typo in Synchronized.pm found by Rob Redmon.
648 * (ms) Fixed bug with Appender::File reported by Michael Smith. Checking
649 now if print() succeeds, catching errors with full disks and
650 ulimit'ed environments.
651 * (ms) Added LOGCARP(), LOGCLUCK(), LOGCONFESS(), LOGCROAK() macros
652 in :easy mode (suggested by Jud Dagnall).
653 * (ms) $INITIALIZED now gets reset during logger cleanup.
654
655 0.52 (05/08/2005)
656 * (ms) Jonathan Manning <[email protected]> provided a patch
657 for DateFormat.pm to fix 3-letter month abbreviations and a
658 shortcut to simulate Apache's log format.
659 * (kg) Ola Finsbraaten provided a patch to provide a better error
660 message when a logger is defined twice in a config.
661
662 0.51 (01/08/2005)
663 * (ms) Jon Bjornstad noticed that the file appender wasn't including
664 $! in the die() exception thrown if open_file() fails. Added it.
665 * (ms) Added umask option to file appender
666 * (ms) Fix to L4p::Util::module::available() for Win32
667 compliance by Roger Yager <[email protected]>
668 * (ms) Added check to L4p::Util::module_available() returning true
669 if the pm file is available in %INC, indicating that it has
670 already been loaded. This fixes a problem when running L4p
671 in a PAR binary.
672 * (ms) Added remove_appender() and eradicate_appender() method to
673 Logger.pm, test cases and documentation on the main Log4perl
674 page.
675 * (ms) Added a generic buffered composite appender, L4p::Appender::Buffer,
676 buffering messages until a trigger condition is met.
677
678 0.50 (12/08/2004)
679 * (ms) Added ':resurrect' source filter, which uncomments all lines
680 starting with "###l4p". Can be used for hidden L4p statements,
681 which are then activated by calling
682 'use Log::Log4perl qw(:resurrect)'.
683 * (ms) Fixed Win32 test suite bug: File::Spec->catfile() returns '/'
684 as a path separator on both Unix and Win32, while Log4perl's
685 layouts (derived from caller() info) use '\' on Win32 and '/'
686 on Unix. Changed tests to only verify file name, not path.
687 * (ms) Added 'appender_by_name()' to retrieve an appender defined
688 in the configuration file by name later.
689 * (ms) Added FAQ on "stubbing out" L4p macros in environments
690 that don't have L4p installed.
691 * (ms) Added convenience function appender_thresholds_adjust() to adjust
692 thresholds of chosen (or all) appenders
693 * (ms) Got rid of Test::Simple dependency
694 * (ms) Moved autoflush setting in L4p::Appender::File from log()
695 to file_open(), running only once, not with every message.
696 * (ms) Applied doc fixes suggested by Jon Bjornstad.
697 * (ms) Added ScreenANSIColor appender to colorize messages based on
698 their priority. See Log::Log4perl::Appender::ScreenANSIColor.
699
700 0.49 (11/07/2004)
701 * (ms) init_and_watch() no longer die()s on reloading syntactically
702 wrong configuration files but issues a warning and then
703 reloads the last working config.
704 * (ms) init() now also accepts an open file handle (passed in as a
705 glob) to a configuration file or a ref to an IO::File object.
706 * (ms) Jos I. Boumans <[email protected]> and
707 Chris Winters <[email protected]> reported an error thrown
708 by L4p in their app SPOPS: During global construction. Looks
709 like the Logger object's internal hash is cleared and then
710 the is_<level> method gets called, resulting in a runtime
711 exception. Added proposed remedy checking if the called
712 method is defined by ref.
713 * (ms) Added check to init_and_watch if obtaining the mod
714 timestamp failed.
715
716 0.48 (08/20/2004)
717 * (ms) fixed bug reported by Chip Salzenberg <[email protected]>: logdie()
718 and logwarn() are now compliant with the warn() and die()
719 standard which suppresses the "at file line x" message if
720 the message ends with a "\n".
721 * (ms) New interface for custom config parsers.
722 Log::Log4perl::Config::BaseConfigurator now provides a base class
723 for new config parsers. Init can now be called like
724 Log::Log4perl->init($parser) with a parser object, which is
725 derived from Log::Log4perl::Config::BaseConfigurator and
726 provides a parse() method (no arguments). The file (or whatever)
727 to be parsed can be set by calling $parser->text(\@lines) or
728 $parser->file($name) before calling L4p->init($parser).
729 The Property, DOM and LDAP configurators have been
730 adapted, check their implementation for details.
731 * (ms) Added integrity check for Log4perl configurations: Log4perl
732 now issues a warning if a configuration doesn't define any
733 appenders. Should anyone not like this, it can be turned
734 off by setting $L4p::Config::CONFIG_INTEGRITY_CHECK = 0
735 before calling init().
736 * (ms) Fixed bug reported by Johannes Kilian <[email protected]>
737 with __DIE__ handler and "PatternLayout" shortcut. Replaced
738 'eval { require ... }' by L4p::Util::module_available in
739 L4p::Config.pm.
740 * (ms) Did away with $IS_LOADED internal variable.
741 * (ms) Fixed bug with L4p::INITIALIZED vs. L4P::Logger::INITIALIZED,
742 added t/020Easy2.t.
743 * (ms) Added adm/cvskwexp script to check if we're running into CVS
744 trouble because of <dollar>Log keyword expansion.
745
746 0.47 (07/11/2004)
747 * (ms) Added suggestion by Hutton Davidson <[email protected]>
748 to make the socket appender more forgiving. New option
749 "silent_recovery" will silently ignore errors and recover
750 if possible on initiallly dead socket connections.
751 * (ms) Fixed bug with initialized() -- checking once caused
752 subsequent calls to return true.
753 * (ms) run t/045Composite.t only if Storable is installed -- earlier
754 perl versions (like 5.6.1) don't have it by default.
755 * (ms) fixed test case in t/020Easy.t for buggy perl 5.6.1
756 * (ms) added Log::Log4perl::infiltrate_lwp() to make LWP::UserAgent
757 play in the L4p framework upon request.
758 * (ms) perl 5.00503 mysteriously core dumps in t/017Watch.t, seems like
759 this was introduced in 0.46. Disabled these tests for now
760 if we're on 5.00503 to avoid installation hickups. Longer term,
761 need to investigate.
762
763 0.46 (06/13/2004)
764 * (ms) removed superfluous eval() in Log4perl.pm, reported anonymously
765 on the CPAN bugtracker.
766 * (ms) Added a cleanup() function to Logger.pm which is used by an
767 END {} block in Logger.pm to tear down all Loggers/Appenders
768 before global destruction kicks in. In addition, Kevin found
769 that the eval "" is the cause of an Appender memleak. Moved
770 assignment variable out of the eval to plug the leak.
771 Added $Log::Log4perl::CHATTY_DESTROY_METHODS, which shows
772 what L4p objects are destroyed and when.
773 * (ms) Kevin's idea is in now, on localizing $? in the L4p global END {}
774 block. It prevents logdie() et. al from exiting with unwanted
775 exit codes when global cleanup / global destruction modifies $?,
776 as seen by Tim with the Email appender.
777 * (ms) Dave Viner <[email protected]> added isLevelEnabled() methods
778 as aliases to is_level().
779
780 0.45 (05/23/2004)
781 * (ms) fix for t/045Composite.t on perl 5.6.1 by Jeff Macdonald
782 <[email protected]> (specify number of test cases,
783 getting rid of no_plan).
784 * (ms) Dennis Gregorovic <[email protected]> provided a patch to
785 protect applications who are tinkering with $/. It is set
786 to "\n" now locally when L4p is reading the conf file. Added
787 a test case to t/004Config.t.
788 * (ms) Fixed a documentation error with initialized(), pointed
789 out by Victor Felix <[email protected]>.
790
791 0.44 (04/25/2004)
792 * (ms) added filename() method to L4P::Appender::File as suggested
793 by Lee Carmichael <[email protected]>
794 * (ms) added RRDs appender Log::Log4perl::Appender::RRDs and testcases
795 * (ms) fixed Log::Log4perl::Appender to check if a an appender package
796 has already been loaded and skip 'require' in this case.
797 Packages injected via Class::Prototyped caused an error with this.
798 * (ms) Extended the FAQ's "How can I write my own appender?" on
799 how to dynamically create new appenders via Class::Prototyped.
800
801 0.43 (03/22/2004)
802 * (ms) Applied patch by Markus Peter <[email protected]> for 'pipe'
803 mode in Log::Log4perl::Appender::File
804 * (ms) Added composite appender Log::Log4perl::Appender::Limit to
805 limit message delivery to adjustable time windows.
806 * (ms) Fixed last 033UsrCspec.t test case to run on Win32 as well
807 (path fixed).
808 * (ms) Lars Thegler <[email protected]> provided a patch to keep
809 compatibility with 5.005_03.
810 * (ms) Added a patch to avoid warnings on undefined MDC values referenced
811 via %X in PatternLayout. Now, the string "[undef]" is used. Bug
812 was reported by Ritu Kohli <[email protected]>
813
814 0.42 (02/14/2004)
815 * (kg) added filters to XML DOMConfig and DTD
816 * (ms) Fixed caller level to cspecs by adding one
817 * (ms) Added init_once() and documentation
818 * (ms) Worked around the perl bug that triggers __DIE__ handlers
819 even if die() occurs within an eval(). So if you did
820 BEGIN { $SIG{__DIE__} = sub { print "ouch!"; die }; }
821 use Log::Log4perl;
822 and Time::HiRes wasn't available, the
823 eval { require Time::HiRes }
824 in PatternLayout.pm triggered the __DIE__ handler. Now there's
825 a function module_available() in L4p::Util to check if a
826 module is installed.
827 * (ms) Fixed %M cspec in PatternLayout in case a logging
828 method is called within one (or more) eval {} block(s).
829 caller(n+m) will be called repeatedly if necessary
830 to get the next real subroutine. Anonymous subroutines will
831 still be called __ANON__, but this can be overridden by
832 defining
833 local *__ANON__ = "subroutine_name";
•834 in them explicitly (thanks, Perlmonks :).
835
836 0.41 (12/12/2003)
837 * (ms) Applied documentation update for Synchronized appender, suggested
838 by David Viner E<lt>[email protected]<gt>
839 * (ms) Added option to Log::Log4perl::Layout::PatternLayout to
840 enable people to provide their own timer functions.
841
842 0.40 (11/11/2003)
843 * (ms) perl 5.005_03 fix for l4p::Appender::Synchronized
844 * (ms) Fixed a bug in 0.39 (thanks to James King for finding) which
845 caused composite appenders like Synchronized to just use
846 SimpleLayout. With the fix, composite appenders are now relaying
847 messages unmodified to their delegates, which can then apply
848 any layout they desire.
849 * (ms) Added file_open(), file_close() and file_switch() to
850 l4p::Appender::File
851
852 0.39 (10/23/2003)
853 * (kg) fixed bug in interaction between Logger::Level and Level::is_valid
854 so that now you can do $logger->level('INFO') instead of just $INFO.
855 * (ms) Added logic for 'composite appenders'. Appenders can now be
856 configured to relay messages to other appenders. Added
857 Log::Log4perl::Appender::Synchronized, an appender guaranteeing
858 atomic logging of messages via semaphores.
859 * (ms) Added basic substitution to PropertyConfigurator. Now you can
860 define variables (like in "name=value") and subsequent patterns
861 of "${name}" will be replaced by "value" in the configuration file.
862 * (kg) Followed Mike's lead and added variable substitution to the
863 DOMConfigurator.
864 * (ms) Added Log::Log4perl::Appender::Socket as a simple Socket
865 appender featuring connection recovery.
866
867 0.38 (09/29/2003)
868 * (kg) fixed bug where custom_levels beneath DEBUG didn't work
869 * (ms) fixed 5.00305 incompatibility reported by
870 Brett Rann <[email protected]> (constants with leading _).
871 * (ms) Log::Log4perl->easy_init() now calls ->reset() first to make sure
872 it's not duplicating the existing logging environment. Thanks
873 to William McKee <[email protected]> for bringing this up.
874 * (ms) fixed bug with error_die() - printed the wrong function/line/file.
875 Reported by Brett Rann <[email protected]>.
876 * (ms) added %T to PatternLayout as a stack traced as suggested by
877 Brett Rann <[email protected]>.
878
879 0.37 (09/14/2003)
880 * (kg) adjusting tests for XML::Parser 2.32 having broken
881 XML::DOM 1.42 and lower
882 * (ms) Added signal handling to init_and_watch
883 * (ms) renamed l4p-internal DEBUG constant to avoid confusion with
884 DEBUG() and $DEBUG as suggested by Jim Cromie <[email protected]>.
885 * (ms) Applied patch by Mac Yang <[email protected]> for
886 Log::Log4perl::DateFormat to calculate the timezone for the 'Z'
887 conversion specifier.
888
889 0.36 (07/22/2003)
890 * (ms) Matthew Keene <[email protected]> suggested to have
891 an accessor for all appenders currently defined -- added
892 appenders() method
•893 * (ms) Test case 041SafeEval.t didn't share $0 explicitly and
894 created some warnings, fixed that with (jf)'s help.
895 * (ms) Added performance improvements suggested by
896 Kyle R. Burton <[email protected]>. is_debug/is_info/etc.
897 are now precompiled, similar to the debug/info/etc. methods.
898 * (ms) Added a fix to have is_debug()/is_info()/etc. pay
899 attention to on-the-fly config file changes via init_and_watch().
900 * (ms) Fixed bug that reloaded the config under init_and_watch()
901 every time the check period expired, regardless if the config
902 file itself had changed. Added test case.
903
904 0.35 06/21/2003
905 * (kg) got rid of warnings during make test in 014ConfErrs.t
906 added user-defined hooks to JavaMap
907 * Jim Cromie <[email protected]> provided a patch to get
908 rid of deprecated our-if syntax in Level.pm
909 * (ms) removed test case for RollingFileAppender because of recent
910 instability. Added dependency for Log::Dispatch::RollingFile 1.10
911 in Log/Log4perl/JavaMap/RollingFileAppender.pm.
912
913 0.34 06/08/2003
914 * (ms) James FitzGibbon <[email protected]> noticed a major
915 bug in Log::Log4perl::Appender::File and provided a patch. Problem
916 was that 0.33 was reusing the same file handle for every opened file,
917 causing all messages to end up in the same file.
918
919 0.33 05/30/2003
920 * (kg) CPAN rt#2636, coordinating XML::DOM version required across modules
921 and unit tests
922 * (ms) Removed Log::Dispatch dependency, added standard
923 Log::Log4perl::Appender appenders File and Screen.
924 Log::Dispatch is still supported for backwards compatibility
925 and special purpose appenders implemented within this hierarchy.
926
927 0.32 05/17/2003
928 * (ms) Added fix to Makefile.PL to compensate for MakeMaker bug
929 in perl < 5.8.0, causing man pages below Log::Log4perl::Config
930 not to be installed. Thanks to Mathieu Arnold <[email protected]>
931 for bringing this up.
932 * (ms) 0.31 had a Win32 test suite glitch, replaced getpwuid()
933 (not implemented) by stat() for Safe test.
934
935 0.31 05/08/2003
936 * (kg) fixed bug Appender::DBI where it was consuming the message
937 array before other appenders could get to it
938 * (ms) changed config_and_watch to ignore clock differences between
939 system time and file system time (helpful with skewed NFS
940 systems). Added Log::Log4perl::Config::Watch.
941 * James FitzGibbon <[email protected]>: Added support for
942 optionally restricting eval'd code to Safe compartments.
943 * (ms) allow/deny code in configuration files should now be controlled
944 via the accessor Log::Log4perl::Config->allow_code(0/1).
945 $Log::Log4perl::ALLOW_CODE_IN_CONFIG_FILE is still supported
946 for backwards compatibility.
947
948 0.30 03/14/2003
949 * (ms) Added Log4perl custom filter logic and standard filter set
950 * (kg) Added url support to init(), finally documenting it
951 * (kg) Finished implementation of DOMConfigurator allowing xml configs.
952 * (ms) Corrected DateFormat inconsistencies as reported by
953 Roger Perttu <[email protected]>
954
955 0.29 01/30/2003
956 * (kg) Removing debugging from 0.28, big woops
957 * (kg) Fixing 036JSyslog.t, Syslog implementations are too often broken
958 to base any results on.
959 * (kg) Fixing XML-DOM tests, Data::Dumper doesn't return data exactly the
960 same way.
961
962 0.28 (01/28/2003)
963 * (ms) '#' in the conf file are now interpreted as comment starters only
964 if they're at the start of a line with optional whitespace.
965 The previous setting (comments starting anywhere) had problems
966 with code containing '#''s, like in layout.cref = sub { $#_ = 1 }
967 * (ms) warp_message accepts code refs or function names
968 * (kg) Split config bits into PropertyConfigurator and implemented
969 DOMConfigurator for XML configs.
970 * (kg) Adding appender.warp_message parameter as a help to DBI
971 appender
972 * (kg) Added NoopLayout to help DBI appender
973 * (ms) Added message output filters:
974 log({filter => \&filter, value => $value})
975 * (kg) t/024WarnDieCarp was assuming / as directory separator, failed
976 on Win32
977 * (kg) implemented JavaMaps for NTEventLogAppender, SyslogAppender
978 * (kg) found and addressed circular ref problem in Logger->reset
979 * (kg) moved TestBuffer under Appender/ directory along with DBI
980 * (kg) fixed docs, Pattern layout, %f not supported, s/b %F
981 * (kg) added Log::Log4perl::Appender::DBI to implement JDBCAppender
982 * (ms) Every value in the config file can now be a perl function,
983 dynamically replaced by its return value at configuration
984 parse time
985 * (ms) NDC now prints entire stack, not just
986 top element (as mandated by Log4j)
987 * (ms) Allow trailing spaces after a line-breaking '\' in the
988 config file to be fault-tolerant on cut-and-pasted code
989
990 0.27 12/06/2002
991 * (ms) Updated FAQ with "Recipes of the Week"
992 * (ms) Added Log::Log4perl::NDC (Nested Diagnostic Contexts) and
993 Log::Log4perl::MDC (Mapped Diagnostic Contexts)
994 * (ms) LOGDIE and LOGWARN added to stealth loggers
995 * (ms) Logging methods ($lo->debug(), $lo->info() ...) now return
996 a value, indicating the number of appenders that the message
997 was propagated to. If the message was suppressed due to level
998 constraints, undef is returned. Updated manpage (new section
999 "return values").
1000 * (ms) Fixed bug reported by Francisco Olarte Sanz.
1001 <[email protected]>: ISO date format and documentation mixed
1002 up MM with mm in the simple date format
1003 * (kg) User-defined conversion specifiers for PatternLayout in
1004 configuration file and as C API
1005 * (kg) implementing map to log4j.RollingFileAppender
1006 * (kg) trying out oneMessagePerAppender parameter
1007 * (kg) changed unit tests to use File::Spec
1008
1009 0.26 11/11/2002
1010 * (kg) enabled %l (was missing from PatternLayout::define)
1011 * (kg) got rid of "Use of uninitialized value in join or string" message
1012 when some of $logger->debug(@array) when some of @array are undef
1013 * (ms) Stealth loggers and documentation
1014 * (kg) Better error message for case reported by Hai Wu
1015 * (ms) Added Log/Log4perl/FAQ.pm, which the homepage links to
1016 * (ms) Took dependency on Test::More and Test::Simple out of the PPD file
1017 because of a problem with Activestate 5.6.1 reported
1018 by James Hahn <[email protected]>
1019 * (ms) Added Log::Dispatch equivalent levels to the Log4perl loggers,
1020 which are passed on the Log::Dispatch appenders now according
1021 to the priority of the message instead of the default "DEBUG"
1022 setting
1023 * (ms) Added %P process ID to PatternLayout as suggested by
1024 Paul Harrington <[email protected]>. Also added
1025 %H as hostname
1026 * (kg) Added %min.max formatter to PatternLayout
1027 * (ms) Updated docs for Log::Log4perl::DateFormat
1028
1029 0.25 10/06/2002
1030 * (ms) backwards-compatibility with perl 5.00503
1031 * (ms) added system-wide threshold, fixed java-app thresholds
1032 * (kg) Nested configuration structures for appenders like L::D::Jabber
1033 * (ms) ::Log4perl::Appender::threshold() accepts strings or integer
1034 levels (as submitted by Aaron Straup Cope <[email protected]>)
1035 * (ms) Fixed logdie/logwarn caller(x) offset bug reported by
1036 Brian Duffy <[email protected]>
1037 * (ms) dies now on PatternLayout without ConversionPattern (helps detecting
1038 typos in conf files)
1039
1040 0.24 09/26/2002
1041 * (kg) Fix for init_and_watch and test cases
1042 * (ms) Added documentation for Log::Log4perl::Config
1043 * (ms) Added log4perl.additivity.loggerName conf file syntax
1044 * (ms) Assume Log::Log4perl::Layout prefix of 'relative'
1045 layout class names in conf file (say 'SimpleLayout'
1046 instead of 'Log::Log4perl::Layout::SimpleLayout').
1047 * (ms) accidently appending a ';' at the end of an appender
1048 class in a conf file now spits out a reasonable error message
1049 * (ms) added a by_name() method to TestBuffer to retrieve an
1050 instance of the TestBuffer population by name instead of
1051 relying on the order of creation via POPULATION[x]
1052 (for testing only).
1053 * (kg) Win32 compatibility fixes
1054
1055 0.23 09/14/2002
1056 * Both Log4perl/log4perl is now accepted in conf file
1057 * Added documentation to Log::Log4perl::Appender
1058 * Made Time::HiRes optional. If it's missing, PatternLayout will
1059 just use full seconds as %r.
1060 * SimpleDateFormat "%d{HH:SS}", including predefined formats (DATE etc.)
1061 * Added another cut-and-paste example to the docs (EXAMPLE)
1062 * Added new logdie/logwarn/error_warn/error_die/logcarp/
1063 logcluck/logcroak/logconfess functions written by
1064 Erik Selberg <[email protected]>
1065 * Added PatternLayout documentation
1066 * Changed suppression of duplicate newline in log message algorithm
1067 * Custom levels and inc_level/dec_level/more_logging/less_logging
1068 added by Erik Selberg <[email protected]>
1069 * Append to logfile by default if Log::Dispatch::File is used
1070 (previously clobbered by default)
1071 * Kevin's init_and_watch fix
1072
1073 0.22 8/17/2002
1074 * Threshold settings of appenders:
1075 $appender->threshold($ERROR);
1076 log4j.appender.A.Threshold = ERROR
1077 * Chris R. Donnelly <[email protected]>
1078 submitted two patches:
1079 - extended init() to take obj references (added, also added a test
1080 case and documentation)
1081 - fixed %F and %L if Log4perl is used by a wrapper class (accepted,
1082 but changed variable name to Log::Log4perl::caller_depth as
1083 a tribute to Log::Dispatch::Config, added test case 022Wrap
1084 and documentation
1085
1086 0.21 8/08/2002
1087 * Synopsis shows code samples in Log4perl.pm/README
1088 * Slight Log4j incompatibility but useful: %F{n} lets you
1089 limit the number of entries the source file path is logged
1090 * Erik W. Selberg ([email protected]) suggested having PatternLayout.pm
1091 suppress another \n if the messages already contains a \n and the
1092 format requires a %n. Done.
1093 * Erik W. Selberg ([email protected]) suggested loggers should take
1094 any number of messages and concatenate them. Done.
1095 * Fixed double-init problem and added a test case. Now the entire
1096 configuration is cleared before the second init(). However, this
1097 surfaced a problem with init_and_watch: If a program obtains
1098 references to one or more loggers, rewriting the configuration
1099 file during program execution and re-initing makes these reference
1100 point to loggers which hold obsolete configurations. Fixed that by
1101 code in debug(), info(), etc. which *replaces* (shudder) the
1102 logger reference the program hands in to them with a new one of
1103 the same category. This happens every time if 'init_and_watch' has
1104 been enabled. However, this introduces a small runtime penalty.
1105 This is different from the original log4j, which does some
1106 half-assed re-initialization, because Java isn't expressive enough
1107 to allow for it. Making this thread-safe might be tough, though.
1108 * Added DEBUG statements to Logger.pm and Config.pm to trace execution
1109 (debugging won't work because of "eval"s). Both files define a
1110 constant named DEBUG towards the top of the file, which will
1111 have perl optimize away the debug statements in case it's set to 0.
1112 * A warning is issued now (once) if init() hasn't been called or
1113 no appenders have been defined.
1114 * Added ':levels' target to Log::Log4perl to import $DEBUG, $ERROR,
1115 etc. levels (just like 'use Log::Log4perl::Level' works).
1116 * Added ':easy' target to allow for simple setup
1117 * Code references can be passed in as log messages to avoid parameter
1118 passing penalty
1119
1120 0.20 7/23/2002
1121 * Strip trailing spaces in config file
1122 * Accept line continuations in properties file
1123 * Refactored Logger.pm for speed, defined the logging behavior when
1124 the logger is created, not when a message is logged
1125 * Fixing test suites so that SimpleFormat newline is accounted for
1126 * Fixed a bug with root inheritance where the category name wasn't
1127 coming through
1128 * added init_and_watch
1129
1130 0.19 07/16/2002
1131 * Added Log::Log4perl::Appender::TestBuffer back in the distribution, otherwise
1132 regression test suite would fail.
1133
1134 0.18 07/16/2002
1135 * Failed attempt to fix the Log::Dispatch::Buffer problem.
1136
1137 0.17 07/11/2002
1138 * Updated documentation according to Dave Rolsky's suggestions
1139 * Lots of other documentation fixes
1140 * Fixed bug in renderer, %M was displayed as the logger function
1141 bumped up the level by 1
1142 * Fixed %% bug
1143
1144 0.16 07/10/2002
1145 * Updated documentation for CPAN release
1146 * Applied Kevin's patch to limit it to one Log::Dispatcher
1147
1148 0.15 07/10/2002
1149 * There were name conflicts in Log::Dispatch, because we used *one*
1150 Log::Dispatch object for the *all* loggers in the Log::Log4perl
1151 universe (it still worked because we were using log_to() for
1152 Log::Dispatch to send messages to specific appenders only). Now
1153 every logger has its own Log::Dispatch object. Logger.pm doesn't
1154 call Kevin's anti-dupe logic anymore -- is this ok? Maybe there's
1155 some leftovers which need to be cleaned up.
1156 * Kevin fixed t/014ConfErrs.t after last night's Appender.pm change
1157
1158 0.14 07/09/2002
1159 * (!) Added new class Log::Log4perl::Appender as a wrapper around
1160 Log::Dispatch::*. Layouts are no longer attached to the loggers,
1161 but to the appenders instead. $app->layout($layout) sets the
1162 layout. $logger->add_appender($app) is the new syntax to add
1163 an appender to a logger. The $logger->layout method is gone
1164 for that reason.
1165 * Added documentation on categories
1166 * Added documentation on Log::Log4perl::Appender,
1167 Log::Log4perl::Layout::SimpleLayout,
1168 Log::Log4perl::Layout::PatternLayout.
1169
1170 0.13 07/09/2002
1171 * in the config files, 'debug' is not a level, 'DEBUG' is
1172 * expanded the layouts so that we can add subclassess, added
1173 SimpleLayout, note that api usage changes
1174 -$logger->layout('buf',"The message is here: %m");
1175 +$logger->layout(new
1176 Log::Log4perl::Layout::PatternLayout('buf',"The message is
1177 here: %m"));
1178 * did benchmarks, see doc/benchmark*, t/013Bench.t
1179 * further tweaked errors for bad configuration, added a test for those
1180
1181 0.12 07/08/2002
1182 * Log::Log4perl::Logger->get_logger now accessible via
1183 Log::Log4perl->get_logger()
1184 * Log::Log4perl::Config->init now accessible via
1185 Log::Log4perl->init()
1186 * Adapted test cases to new shortcuts
1187 * Constrained some files to 80 chars width
1188 * Added test case t/009Deuce.t for two appenders in one category
1189 via the config file
1190 * Changed default layout in case there's none defined (SimpleLayout)
1191 * Implemented dictatory date format for %d: yyyy/MM/dd hh:mm:ss
1192
1193 0.11 07/07/2002
1194 * added documentation to Log/Log4perl.pm
1195 * added is_debug/is_error/is_info etc. functions to Logger.pm,
1196 test cases to t/002Logger.t
1197
1198 0.10 07/05/2002
1199 * %p should return level name of the calling function, so
1200 $logger->warn('bad thing!!') should print 'WARN - bad thing'
1201 even if the category is set to debug, so took level_str out of
1202 Logger.pm (kg)
1203
1204 0.09 07/03/2002
1205 * %p should return level name, not number, adding level_str to Logger.pm (kg)
1206 * Level.pm - discriminating: priorities are 1-4, levels are
1207 'info','debug',etc (kg)
1208
1209 0.08 07/03/2002
1210 * Non-root loggers are working now off the config file
1211
1212 0.07 07/02/2002
1213 * Updated documentation
1214 * removed "diagnostics"
1215
1216 0.06 07/01/2002
1217 * Bug discovered by Kevin Goess <[email protected]>, revealed
1218 in 004-Config.t: Wrong layout used if Appender is inherited.
1219 Fixed.
1220 * Changed Log::Log4perl::Appender::TestBuffer to keep track of the
1221 object population -- so we can easily reference them
1222 in the Log::Log4perl test cases. Got rid of get_buffer().
1223 * Added a reset() method to Log::Log4perl and Log::Log4perl::Logger
1224 for easier testing. It resets all persistent loggers to
1225 the inital state.
1226 * Added documentation
1227
1228 0.05 06/30/2002
1229 * Fixed bug with mapped priorities between java/Log::Dispatch
1230 * Java/Perl integration with conf file
1231
1232 0.04 06/30/2002
1233 * Layout tests
1234 * %r to layout
1235 * Added lib4j configuration file stuff and tests
1236
1237 0.03 06/30/2002
1238 * Layout
1239 * Curly braces in Layout first ops
1240
1241 0.02 06/30/2002
1242 * Created Logger and test cases
1243
1244 0.01 06/22/2002
1245 * Where it all began
1246
1247 TODO List:
1248 ##################################################
1249 * Layout.pm: '%t'
1250 * Wild idea: Could we possibly utilize the compiler
1251 frontend to eliminate log statements that are not going to be
1252 triggered? This would be a HUGE performance increase!
1253 * get_logger() thread safety (two try to create it at the same time)
1254 * Thread safety with re-reading the conf file (watch)
1255 * log4j.logger.blah = INHERITED, app