forked from pool/perl-Log-Log4perl
update to 1.33
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Log-Log4perl?expand=0&rev=18
This commit is contained in:
parent
d853f3c157
commit
cfbccef041
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5a6b83157e1e40ca1b37f83ad05a860585931abe0bbccdc128e5a4fbd2a5e568
|
|
||||||
size 194940
|
|
3
Log-Log4perl-1.33.tar.gz
Normal file
3
Log-Log4perl-1.33.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:949b736def05c5b9e4e79a8c95b4e7b62bead0bf374e032a06f30c13657a6370
|
||||||
|
size 262700
|
@ -1,3 +1,61 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 23 13:33:38 UTC 2011 - chris@computersalat.de
|
||||||
|
|
||||||
|
- update to 1.33
|
||||||
|
* (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.31 (2010/10/27)
|
||||||
|
* (ms) Fixed the number of skipped tests for Windows for previous fix
|
||||||
|
of [RT 60665].
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
- fix deps
|
||||||
|
* Req: perl(File::Spec) >= 0.82
|
||||||
|
Req: perl(Test::More) >= 0.45
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 30 19:20:26 UTC 2010 - coolo@novell.com
|
Tue Nov 30 19:20:26 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Log-Log4perl (Version 1.29)
|
# spec file for package perl-Log-Log4perl (Version 1.33)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,20 +15,17 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
|
|
||||||
Name: perl-Log-Log4perl
|
Name: perl-Log-Log4perl
|
||||||
%define cpan_name Log-Log4perl
|
Version: 1.33
|
||||||
Summary: Log4j implementation for Perl
|
|
||||||
Version: 1.29
|
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries/Perl
|
%define cpan_name Log-Log4perl
|
||||||
|
Summary: Log4j implementation for Perl
|
||||||
Url: http://search.cpan.org/dist/Log-Log4perl/
|
Url: http://search.cpan.org/dist/Log-Log4perl/
|
||||||
#Source: http://www.cpan.org/modules/by-module/Log/Log-Log4perl-%{version}.tar.gz
|
Group: Development/Libraries/Perl
|
||||||
Source: %{cpan_name}-%{version}.tar.bz2
|
Source: http://www.cpan.org/authors/id/M/MS/MSCHILLI/%{cpan_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
@ -41,45 +38,78 @@ BuildRequires: perl(Log::Dispatch)
|
|||||||
BuildRequires: perl(XML::DOM) > 1.29
|
BuildRequires: perl(XML::DOM) > 1.29
|
||||||
BuildRequires: rrdtool
|
BuildRequires: rrdtool
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: perl(Test::More) >= 0.45
|
|
||||||
BuildRequires: perl(File::Spec) >= 0.82
|
BuildRequires: perl(File::Spec) >= 0.82
|
||||||
|
BuildRequires: perl(Test::More) >= 0.45
|
||||||
# other not perl || perl-base
|
# other not perl || perl-base
|
||||||
#BuildRequires: perl(DBI) >= 1.607
|
#BuildRequires: perl(DBI) >= 1.607
|
||||||
#BuildRequires: perl(DBD::CSV) >= 0.22
|
#BuildRequires: perl(DBD::CSV) >= 0.22
|
||||||
#BuildRequires: perl(IO::Socket::INET)
|
#BuildRequires: perl(IO::Socket::INET)
|
||||||
Requires: perl(DBI) >= 1.607
|
####
|
||||||
Requires: perl(IO::Socket::INET)
|
#Requires: perl(DBI) >= 1.607
|
||||||
|
#Requires: perl(IO::Socket::INET)
|
||||||
Requires: perl(Log::Dispatch)
|
Requires: perl(Log::Dispatch)
|
||||||
Requires: perl(Log::Dispatch::FileRotate) >= 1.10
|
Requires: perl(Log::Dispatch::FileRotate) >= 1.10
|
||||||
Requires: perl(XML::DOM) > 1.29
|
Requires: perl(XML::DOM) > 1.29
|
||||||
|
#
|
||||||
|
Requires: perl(File::Spec) >= 0.82
|
||||||
|
Requires: perl(Test::More) >= 0.45
|
||||||
Requires: rrdtool
|
Requires: rrdtool
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Log::Log4perl lets you remote-control and fine-tune the logging behaviour
|
Log::Log4perl lets you remote-control and fine-tune the logging behaviour
|
||||||
of your system from the outside. It implements the widely popular (Java-
|
of your system from the outside. It implements the widely popular
|
||||||
based) Log4j logging package in pure Perl.
|
(Java-based) Log4j logging package in pure Perl.
|
||||||
|
|
||||||
Authors:
|
*For a detailed tutorial on Log::Log4perl usage, please read*
|
||||||
--------
|
|
||||||
Mike Schilli <m@perlmeister.com>
|
http://www.perl.com/pub/a/2002/09/11/log4perl.html
|
||||||
Kevin Goess <cpan@goess.org>
|
|
||||||
|
Logging beats a debugger if you want to know what's going on in your code
|
||||||
|
during runtime. However, traditional logging packages are too static and
|
||||||
|
generate a flood of log messages in your log files that won't help you.
|
||||||
|
|
||||||
|
'Log::Log4perl' is different. It allows you to control the number of
|
||||||
|
logging messages generated at three different levels:
|
||||||
|
|
||||||
|
* *
|
||||||
|
|
||||||
|
At a central location in your system (either in a configuration file or
|
||||||
|
in the startup code) you specify _which components_ (classes, functions)
|
||||||
|
of your system should generate logs.
|
||||||
|
|
||||||
|
* *
|
||||||
|
|
||||||
|
You specify how detailed the logging of these components should be by
|
||||||
|
specifying logging _levels_.
|
||||||
|
|
||||||
|
* *
|
||||||
|
|
||||||
|
You also specify which so-called _appenders_ you want to feed your log
|
||||||
|
messages to ("Print it to the screen and also append it to /tmp/my.log")
|
||||||
|
and which format ("Write the date first, then the file name and line
|
||||||
|
number, and then the log message") they should be in.
|
||||||
|
|
||||||
|
This is a very powerful and flexible mechanism. You can turn on and off
|
||||||
|
your logs at any time, specify the level of detail and make that dependent
|
||||||
|
on the subsystem that's currently executed.
|
||||||
|
|
||||||
|
Let me give you an example: You might find out that your system has a
|
||||||
|
problem in the 'MySystem::Helpers::ScanDir' component. Turning on detailed
|
||||||
|
debugging logs all over the system would generate a flood of useless log
|
||||||
|
messages and bog your system down beyond recognition. With 'Log::Log4perl',
|
||||||
|
however, you can tell the system: "Continue to log only severe errors to
|
||||||
|
the log file. Open a second log file, turn on full debug logs in the
|
||||||
|
'MySystem::Helpers::ScanDir' component and dump all messages originating
|
||||||
|
from there into the new log file". And all this is possible by just
|
||||||
|
changing the parameters in a configuration file, which your system can
|
||||||
|
re-read even while it's running!
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
# rpmlint: script-without-shebang
|
find . -type f -print0 | xargs -0 chmod 644
|
||||||
find -name "*.pm" -exec chmod 0644 {} \;
|
|
||||||
pushd eg
|
|
||||||
# rpmlint: spurious-executable-perm
|
|
||||||
# rpmlint: wrong-script-interpreter
|
|
||||||
for f in $(find -type f); do
|
|
||||||
%{__chmod} 0644 "$f"
|
|
||||||
%{__sed} -i -e "s@/usr/local/bin/perl@%{__perl}@" "$f"
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
|
||||||
%{__make} %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -87,18 +117,14 @@ popd
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
# do not perl_process_packlist (noarch)
|
%perl_process_packlist
|
||||||
# remove .packlist file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
||||||
# remove perllocal.pod file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes LICENSE README eg xml ldap
|
%doc Changes LICENSE README eg xml ldap
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user