Upstream changes:
1.46 (2014/10/31)
* (ms) Fixed Gianni's utc time test for machines set to utc time.
1.45 (2014/10/25)
* (ms) fgeueke provided a pull request for short-circuiting boolean
filters: https://github.com/mschilli/log4perl/pull/48
* (ms) [rt.cpan.org #94009] Tim Bunce had requested that the
PatternLayout's %m specifier allow for fixed indentation,
variable indentation, and at the same time permit the use
of the chomp option. Added with tests and docs.
* (ms) Gianni Ceccarelli added the log4perl.utcDateTimes config
option to select UTC instead of localtime:
https://github.com/mschilli/log4perl/pull/53
* (ms) @bokutin fixed Catalyst.pm buffer flush:
https://github.com/mschilli/log4perl/pull/51https://github.com/mschilli/log4perl/issues/54
1.44 (2014/05/17)
* (ms) Skipped mkpath umask tests on Win32 which doesn't support it
properly.
* (ms) Requiring core module File::Path 2.06_06, which has remove_tree()
(fixes test suite for ancient perl-5.6.2).
* (ms) Brian Wightman fixed temporary file cleanup in the test suite
for Win32: https://github.com/mschilli/log4perl/pull/45
1.43 (2014/03/16)
* (ms) Added %m{indent} to indent multi-line messages according to the
PatternLayout (inspired by Wolfgang Pecho)
* (ms) [rt.cpan.org #84818] Deven T. Corzine suggested adding
a conditional use Win32 on Win32 platform to fix a
chicken-and-egg problem with the resurrector.
* (ms) Brian Wightman fixed Win32 log file cleanup in test suite
https://github.com/mschilli/log4perl/pull/39. New FAQ
entry on Win32 log file cleanup.
1.42 (2013/07/25)
* (ms) BenRifkah Bergsten-Buret added ';!' for property configurator
comment delimiters:
https://github.com/mschilli/log4perl/issues/25
* (ms) [rt.cpan.org 84723] Suppress error if close() in the file
appender in pipe mode returns "No child processes".
* (ms) Ronald J Kimball fixed a bug with the file appender's
create_at_logtime option in combination with
recreate_check_signal:
https://github.com/mschilli/log4perl/pull/28
* (ms) Fixed additivity() modifications after init():
https://github.com/mschilli/log4perl/issues/29
* (ms) [rt.cpan.org 87191] Applied patch by Zefram for better
maintainable line number checks (and coping with 5.19 buggy
line numbering, cough, cough).
1.41 (2013/04/21)
* (ms) [rt 81731] Added 'trace' level to Log4perl::Catalyst, as
suggested by Ashley Pond.
* (ms) Alexander Hartmaier added Log::Log4perl::Filter::MDC to filter
based on MDC key/value
* (ms) [rt.cpan.org 83193] The file appender now ignores owner/group
settings on all types of existing file system entries (previously,
this was only the case for actual files).
* (ms) [rt.cpan.org 84289] Documented Level.pm's isGreaterOrEqual()
comparator.
* (ms) [rt.cpan.org #84725] Fixed test suite to allow running tests
in parallel via HARNESS_OPTIONS=j10:c HARNESS_TIMER=1.
Reported by Brendan Byrd.
Do it for all packages that
* mention perl, or
* have a directory name starting with p5-*, or
* depend on a package starting with p5-
like last time, for 5.18, where this didn't lead to complaints.
Let me know if you have any this time.
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package
Like last time, where this caused no complaints.
ChangeLog:
1.40 (2012/11/30)
* (ms) Denis Ibaev added support for DBI appender attributes.
* (ms) Chris Weyl put in a workaround for a DBD::CSV bug that
tripped our test suite.
* (ms) Tim Bunce provided a patch using Carp::confess() instead of die()
on the "Root Logger not initialized" message which pops up
during global construction to make it easier to find the
offending code.
* (ms) Cygwin masks MSWin32-ishness by setting $^O to "cygwin" and not
to "Win32". Modified check to catch both.
* (ms) Fixed unescaped brace in regex that perl 5.17.4 was complaining
about.
1.39 (2012/10/27)
* (ms) Markus Benning reported that logcroak/confess/die stringify
their arguments, which gets in the way when throwing data
structures as exceptions. Added flag $STRINGIFY_DIE_MESSAGE.
* (ms) [rt.cpan.org #80086] David Morel pointed out misleading
documentation in the Limiter composite appender. Fixed docs
and added C<appender_method_on_flush> parameter to support
appender flush calls by the limiter.
* (ms) [rt.cpan.org #79960] Fabrice Gabolde asked for %X{x} to be
interpolated as NULL for the database appender if its value is
undef. The DBI appender now inits PatternLayout with the
undef_column_name parameter set to undef (defaults to "[undef]").
* (ms) Updated license/copyright/author sections in all files using
licensizer and .licensizer.yml.
* (ms) Skipped log file recreation test on Win32 as it won't remove
busy files anyway.
1.38 (2012/09/23)
* (ms) Bob Kleemann reported that logdie() in wrapper classes
printed incorrect caller lines. Fixed by adding
caller_depth_offset() utility to Log4perl.pm.
* (ms) Meir Guttman reported a use case for logging messages
with dynamic levels on log4perl-devel@lists.sourceforge.net.
Added to manual page.
* (ms) Implemented suggestion by Neil Hooey to check for and report
undefined message elements before they're assembled in Appender.pm
and a warning is issued without a proper code location:
https://github.com/mschilli/log4perl/issues/15
* (ms) [rt.cpan.org #78734] Added spell check on filter parameter names
1.37 (2012/05/30)
* (ms) [rt.cpan.org #75655] Meir Guttman found the module to make
Log::Log4perl::Appender::ScreenColoredLevels work on Win32,
updated docs.
* (ms) [rt.cpan.org #76827] UTF-8 encoded configuration files are
now supported (see Log::Log4perl::Config).
* (ms) [rt.cpan.org #77501] Unescaped left brace in regex is deprecated
with perl 5.17. Times we live in.
Changes:
1.36 (2012/02/11)
* (ms) [rt.cpan.org #74833] Reini Urban fixed "defined @array" for
perl 5.16
* (ms) [rt.cpan.org #74836] Cope with Carp's questionable decision to
add a trailing dot to its messages.
1.35 (2012/01/03)
* (ms) [rt.cpan.org #73462] Changed logwarn/logcluck/logcarp/error_warn
to warn() unconditionally and send the message to log4perl which
will log it only if the log level conditions are met.
* (ms) [rt.cpan.org #73598] Gerda Shank reported test suite problems
with DBD::CSV-0.26. Bumped up to DBD::CSV-0.33 if installed.
1.34 (2011/11/04)
* (ms) InternalDebug now replaces all instances of INTERNAL_DEBUG,
not just the first one.
* (ms) Added test case for get_logger() with a ref() on the actual
object instead of on a static category. Updated docs.
* (ms) %d{e} in PatternLayout now returns epoch seconds
* (ms) [RT 72056] Messages blocked by an appender threshold are no
longer passed on to the L4p::Appender::Buffer as undefined
entries.
1.33 (2011/05/31)
* (ms) [RT 67132] Applied patch by Darin McBride to allow for
empty syswrite messages in the file appender.
* (ms) [RT 68105] Fixed init-hash handling of subroutine references,
reported by Frew Schmidt.
* (ms) Mike Schwern noticed confusing DESTROY calls to clean up loggers
and appenders (http://stackoverflow.com/questions/5914088 and
https://github.com/mschilli/log4perl/issues/7), so I put on my
hazmat suit and cleaned it up. Now perl's garbage collector takes
care of disposing of logger and appender carcasses.
* (ms) Added Log::Log4perl->remove_logger($logger) to remove a logger
from the system.
1.32 (2011/02/26)
* (ms) Fixed %T caller_depth with wrapper_register(), reported
by David Christensen.
* (ms) [RT 63053] Fixed for qw() {} deprecated (Todd Rinaldo)
* (ms) [RT 62674] Fixed call to deprecated form of UNIVERSAL::can (Karen
Etheridge).
* (ms) [RT 62896] Log::Log4perl::Appender::ScreenColoredLevels now
inherits from Log::Log4perl::Appender::Screen and therefore
supports the utf8 flag.
* (ms) [RT 64318] Andrew Sayers provided a better error message for
"threshold needs to be uppercase".
* (ms) CharleyDixon fixed LOGWARN when :no_extra_logdie_message is
in use to no longer exit().
1.30 (2010/08/30)
* (ms) [RT 60665] HUP handlers are stacked on top of each other now,
to make sure that multiple file appenders recreate multiple
files and not just one (patch provided by Karen Etheridge).
* (ms) [RT 60197] Fixed uninitialized value warnings with
the multiline appender and provided a test case (patch provided
by Karen Etheridge)
* (ms) [rt.cpan.org #59617] Fixed system-wide threshold without appender
thresholds. Bug reported by Dmitry Bigunyak.
* (ms) [rt.cpan.org #24884] Using require() instead of incomplete
logic in L4p::Util::module_available(). local __DIE__
handler takes care of user-defined __DIE__ handlers
ignoring $^S (suggested by Eric Wilhelm and others).
* (ms) [rt.cpan.org #60386] Fixed init_and_watch() which
double-bumped the caller_level and led to uninitialized
values in the pattern layout. Thanks to Mitja Bartsch for
the report.
* (ms) Applied patch by Karsten Silkenbäumer to add an optional
$log_dispatch_level to create_custom_level(). Updated
documentation.
1.29 (2010/06/16)
* (ms) Added documentation on how to use Log4perl's :easy macros
with Catalyst in Log::Log4perl::Catalyst.
* (ms) wrapper_register() now deals with caller_depth automatically.
Backwards compatibility with old wrapper classes using
caller_depth directly is provided. Documentation has been
updated.
* (ms) Felix Antonius Wilhelm Ostmann reported Resurrector.pm
crashes, fixed as suggested by setting the %INC value to
the module path.
* (ms) Another caller_depth fix in Log::Log4perl::Catalyst.
* (ms) Fixed logdie() caller_depth bug reported by Rob Retter.
* (ms) [RT 56145] Saving errstr in DBI appender to survive ping()
* (ms) Added INTERNAL_DEBUG env variable to test suite triggering
all _INTERNAL_DEBUG statements to be printed for better
error diagnosis on misbehaving systems.
to trigger/signal a rebuild for the transition 5.10.1 -> 5.12.1.
The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=..."), minus the packages updated after
the perl package update.
sno@ was right after all, obache@ kindly asked and he@ led the
way. Thanks!
Upstream changes:
1.28 (2010/02/24)
* (ms) Fixed caller stack with Buffer composite appender
* (ms) Fixed 'local caller_depth' error in various places. First
localizing a variable and then increasing it is incorrect,
as this ignores previous settings. The correct way of
increasing the caller level is: 'local depth = depth + 1'.
* (ms) Added Log::Log4perl::Catalyst for use in Catalyst applications.
pkgsrc changes:
- Using CPAN by-module master site - maintainer independent
- correcting file permissions of perl modules
Upstream changes:
1.27 (2010/02/07)
* (ms) ***WARNING: This might break backward compatibility
with some wrapper classes.
[RT 52913] Fixed category fetching in
wrapper classes (reported by Martin Evans). Wrapper classes
now need to call Log::Log4perl->wrapper_register to adapt
get_logger() category fetching. Detailed docs under
"Using Log::Log4perl with wrapper functions and classes"
* (ms) Made meta tag compatible with MakeMaker versions < 6.50
(ms) [RT 52083] Fixed manifest glitch from 1.26 (reported by
Lars Thegler).
* (ms) Added note to FAQ on 'no init happened' warnings for API
initializations, as suggested by Malcolm Nooning.
* (ms) Applied patch by Christopher Mckay which sets
Log4perl::Logger::INITIALIZED only if it's fully initialized.
* (ms) Emmanuel Rodriguez suggested changing TestBuffer's reset()
method to leave the logger population alone. Added clear()
to accomodate the need for a single buffer reset.
* (ms) Xavier Caron added %p{1} to allow abbreviated priority
strings in the pattern layout.
* (ms) Redid composite appenders to address problems with incorrect
caller() data. L4p now supports a $cache parameter to be
passed to the log() function, which stores the completely
rendered message and can be passed to log_cached() later on.
1.26 (2009/11/22)
* (ms) [RT 50495] Perl code in the config file is now evaluated/
compiled after the configuration parser has done its work,
opening up Perl subroutines to all configuration parsers, not
just PropertyConfigurator. Configuration subs for cspecs,
filter, warp_message and appender triggers are sheltered.
The previous, flawed implementation surfaced while using
a 'trigger' category, reported by Olivier Bilodeau.
* (ms) [RT 50090] Added non-portable linebreaks to PatternLayout
(requested by Zden??k Juran).
* (ms) [RT 50094] Docfix for PatternLayout in main manpage (spotted
by Peter Rabbitson).
* (ms) [RT 28679] Added exists() to "Threshold" keyword uppercase
check.
* (ms) Took out Class::Prototyped testcase after it got all weird
and introduced backward-incompatible changes.
- Changed MasterSite
ChangeLog upstream:
1.25 (2009/09/27)
* (ms) Appender::File is now closing (or sysclosing) the file
on file_close() instead of just undef'ing the handle.
* (ms) Added l4p-tmpl helper script to help whipping up a new
log4perl configuration file.
* (ms) Fixed uninitialized warning on XML configuration files,
reported by jbkilian on the sourceforge mailing list.
* (ms) Applied patch [RT 43426] by AFF <aff@cpan.org> to have
appender_thresholds_adjust return number of appenders changed.
* (ms) [RT 34400] New :nostrict target which allows redefining a
category within a Log4perl configuration file without error
or even a warning.
* (ms) [RT 34401] Applied patch by Jae Gangemi, who fixed
code references in @INC on Win32 systems.
* (ms) [RT 32259] Patternlayout now supports %R, which returns the
number of milliseconds elapsed from last logging event to
the current logging event (thanks to Emmanuel Rodriguez for
the patch).
* (ms) [RT 30899] Color configuration and attribute support
added to ScreenColoredLevels appender by Jason Kohles.
* (ms) [RT 28987] If UNIVERSAL is available, appender existence is
now verified by checking can() on the appender's new()
method (applied modified patch by Gabriel Berriz).
pkgsrc changes:
- Adjusting license according to module's POD
Upstream changes:
1.24 (2009/07/08)
* (ms) Fixed bug with Log::Log4perl::Util::tmpfile_name which
surfaced on VMS, reported by Ben Humphreys.
* (ms) Fixed system-wide threshold to no longer lower appender
thresholds. Bug reported by Jean-Denis Muys.
* (ms) Added benchmark to determine impact of eval-free handlers
* (ms) Merged with eval_free branch. Now there are no more
eval("") statements left in the code, making it much easier
to debug. Performance on init() is about the same, performance
on init_and_watch() (noops and logged statements alike) is
25% slower but still in the range of 400,000/sec on my
1.80Ghz CPU.
- Updating package for p5 module Log::Log4Perl from 1.21 to 1.23
Upstream changes:
1.23 (2009/05/12)
* (ms) DBI-1.608 removed a DBD::File 'feature' that allowed leaving
out parameters in a bound execute(). This caused the test
suite to fail (http://groups.google.com/group/perl.cpan.testers/browse_thread/thread/af1f5c875165c387). Fixed the test cases to pass the correct
number of parameters every time.
* (ms) Better error message in the DBI appender on bad SQL, missing
bind parameters, or other execute() errors.
* (ms) Made DBI test suite more robust against preexisting conditions
* (ms) Added force_next_check() for init_and_watch(), cleaned up
Config::Watcher code.
* (ms) Fixed test suite to run on Strawberry Perl on Win32 (reported
by kmx on https://rt.cpan.org/Ticket/Display.html?id=45983)
* (ms) Added 'utf8' option to screen appender and easy mode, some of
it suggested in
http://rt.cpan.org/Public/Bug/Display.html?id=36673 by
Shantanu Bhadoria.
1.22 (2009/05/02)
* (ms) is_xxx() returned true prior to L4p initialization. Fixed it
and adapted test suite.
* (ms) Added test cases on syswrite in recreate mode
* (ms) Applied patch by Jens Berthold <log4perl@jebecs.de> to
avoid semaphore cleanup in spawned children.
* (ms) Added %m{chomp} feature, 'message_chomp_before_newline' option,
and documentation on newlines and logging messages, all
suggested by Tim Bunce (see PatternLayout).
- Updating package for p5 module Log::Log4Perl to 1.21 from 1.20
- Setting license to gnu-gpl-v2
Upstream changes:
1.21 (2009/03/16)
* (ms) Documentation typos fixed, reported by Breno G. de Oliveira
[rt.cpan.org #42428].
* (ms) Fixed DBI appender error message, bug reported by DavidZ.
* (ms) Fixed [rt.cpan.org #43740] reported by Martin Koehler. Now using
proper POSIX return code EEXISTS instead of error message
depending on English locale.
* (ms) Using semctl to reset the value of the semaphore in the
Synchronized appender to prevent "Numerical result out of
range" problem caused by an unbalanced SEM_UNDO when
incrementing it. Reported by John Little.
* (ms) Added parameters in curly braces to cspecs in PatternLayout.
* (ms) As explained in http://rt.cpan.org/Ticket/Display.html?id=41505
the latest LWP release (5.822) got rid of all of its internal
debugging functions, making infiltrate_lwp() and its test
case useless. Disabling it for LWP>=5.822.
Changelog:
i1.19 (2008/10/22)
* (ms) Applied patch by Peter Rabbitson, which fixes the caller()
level when calling get_logger() on a subclass of Log4perl.
* (ms) Added documentation on is_xxx() methods and clarified that
it doesn't necessarily mean that a message gets logged if
they're returning true (requested by Conway Allen via
[rt.cpan.org #39085].
* (ms) Applied patch by Lee Johnson to appender_by_name() to allow
for undefined appender names without issuing a warning,
which was occurring with Catalyst::Log4perl.
* (ms) Added docs on numerical levels and level strings in
Log::Log4perl::Level.
* (ms) Applied patch by Anthony Foiani for support of literal
text in DateFormat format strings.
to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0.
The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=...").
Changelog:
1.18 (2008/08/23)
* (ms) Added explanation that categories and loggers are the same
thing (thanks to Rabbit).
* (ms) Fixed t/053Resurrect to work with 5.005_03
* (ms) Added preinit_callback function for init_and_watch()
* (ms) Applied patch by Andy Grundman which speeds up is_LEVEL()
calls by skipping unnecessary string concatenations
(http://rt.cpan.org/Ticket/Display.html?id=38537).
* (ms) Applied patch by Jae Gangemi addding a no_warning option to the
socket appender
(http://rt.cpan.org/Ticket/Display.html?id=34399).
ChangeLog:
1.17 (2008/07/19)
* (ms) Fixed test suite to run on Strawberry Perl on Win32.
* (ms) Added 'l4p' as a valid prefix in configuration files (equal
to 'log4j' and 'log4perl' now).
DESCR of the package:
Log::Log4perl lets you remote-control and fine-tune the logging
behaviour of your system from the outside. It implements the widely
popular (Java-based) Log4j logging package in pure Perl.