8
0

Compare commits

...

20 Commits

Author SHA256 Message Date
fce9860d4d Accepting request 896697 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/896697
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=28
2021-06-02 20:11:49 +00:00
07550fa3e0 Accepting request 895824 from devel:languages:perl:autoupdate
- updated to 1.38
   see /usr/share/doc/packages/perl-Log-Dispatch-FileRotate/Changes
  1.38 Wed 14 26 2021
      - No Changes other than SIGNATURE, v1.37 was missing SIGNATURE
  1.37 Wed 58 26 2021
      - Improve synopsis showing how to use it with Log::Dispatch [Github #23]
      - Bump minimum version of Log::Dispatch to v2.59 to address minimum
        List::Util indirect dependency via Specio [Github #26]

OBS-URL: https://build.opensuse.org/request/show/895824
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Log-Dispatch-FileRotate?expand=0&rev=40
2021-06-01 13:17:55 +00:00
c47c68ff60 Accepting request 631297 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/631297
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=27
2018-08-31 08:42:46 +00:00
fbee50843e Accepting request 626139 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/626139
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Log-Dispatch-FileRotate?expand=0&rev=38
2018-08-24 10:08:08 +00:00
f9757f002c Accepting request 585302 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/585302
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=26
2018-03-14 18:38:07 +00:00
Stephan Kulow
8105fbcd2d Accepting request 584189 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/584189
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Log-Dispatch-FileRotate?expand=0&rev=36
2018-03-10 13:09:43 +00:00
3b07843329 Accepting request 526775 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/526775
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=25
2017-09-20 15:07:23 +00:00
Stephan Kulow
bb9d7c1aa6 Accepting request 525971 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/525971
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Log-Dispatch-FileRotate?expand=0&rev=34
2017-09-17 17:49:26 +00:00
23c0ec1cfa Accepting request 520427 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/520427
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=24
2017-09-04 10:36:46 +00:00
Stephan Kulow
68c6bc0cc0 Accepting request 516948 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/516948
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Log-Dispatch-FileRotate?expand=0&rev=32
2017-09-03 09:00:10 +00:00
18b43d63bc Accepting request 516824 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/516824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=23
2017-08-28 13:10:21 +00:00
59cf8bc565 Accepting request 509391 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/509391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=22
2017-07-21 20:47:18 +00:00
f4cae162e5 Accepting request 494766 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/494766
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=21
2017-05-31 10:16:29 +00:00
7b3b96d1ea Accepting request 487654 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/487654
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=20
2017-04-20 18:52:16 +00:00
21f0a773c0 Accepting request 457532 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/457532
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=19
2017-02-16 16:07:34 +00:00
722d4e70e5 Accepting request 443743 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/443743
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=18
2017-01-21 23:21:14 +00:00
Stephan Kulow
b5e9815ac7 replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=13
2011-12-06 17:43:52 +00:00
Stephan Kulow
67c71537bc Accepting request 92051 from devel:languages:perl
- use original tar.gz

OBS-URL: https://build.opensuse.org/request/show/92051
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=12
2011-11-21 11:42:24 +00:00
Sascha Peilicke
cba37a1bd2 Autobuild autoformatter for 80284
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=10
2011-09-01 13:13:27 +00:00
Sascha Peilicke
31605f81d0 Accepting request 80284 from devel:languages:perl
Standardized "Authors:" format in description of perl-Log-Dispatch-FileRotate.spec (forwarded request 80267 from aturrini)

OBS-URL: https://build.opensuse.org/request/show/80284
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Log-Dispatch-FileRotate?expand=0&rev=9
2011-09-01 13:13:17 +00:00
4 changed files with 97 additions and 67 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:73e6bd0a424dff9afd5503d7b57865898932417ea46ea362f2c69e785b92c2a8
size 25293

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b55d6cede3f0a06426488fbfa554f4561320b014c1023893ced29508e5bce4ec
size 30103

View File

@@ -1,3 +1,78 @@
-------------------------------------------------------------------
Thu May 27 03:07:23 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 1.38
see /usr/share/doc/packages/perl-Log-Dispatch-FileRotate/Changes
1.38 Wed 14 26 2021
- No Changes other than SIGNATURE, v1.37 was missing SIGNATURE
1.37 Wed 58 26 2021
- Improve synopsis showing how to use it with Log::Dispatch [Github #23]
- Bump minimum version of Log::Dispatch to v2.59 to address minimum
List::Util indirect dependency via Specio [Github #26]
-------------------------------------------------------------------
Mon Jul 30 05:32:22 UTC 2018 - coolo@suse.com
- updated to 1.36
see /usr/share/doc/packages/perl-Log-Dispatch-FileRotate/Changes
1.36 Sun 24 29 2018
- If the "permissions" param is set, use the same permissions for the lock
file that the log file will use. [github #21]
-------------------------------------------------------------------
Thu Mar 8 06:28:05 UTC 2018 - coolo@suse.com
- updated to 1.35
see /usr/share/doc/packages/perl-Log-Dispatch-FileRotate/Changes
1.35 Wed 43 07 2018
- Fix lockfile race condition test in Strawberry Perl (Thanks Zak B. Elep)
- Skip file open failure test on Cygwin - chmod bahaviour varies on Cygwin
(Zak B. Elep)
- Minor test cleanups (Zak B. Elep)
- Fix "Use of "localtime" without parentheses" warning on older Perls
- Migrate issues/bug tracking from rt.cpan.org to Github issues.
-------------------------------------------------------------------
Thu Sep 14 05:46:01 UTC 2017 - coolo@suse.com
- updated to 1.34
see /usr/share/doc/packages/perl-Log-Dispatch-FileRotate/Changes
1.34 Wed 55 13 2017
- We now use a a global Mutex object for each open file that gracefully
handles locking between threads and across forks. This fixes the
following deadlock scenarios:
- a $SIG{__WARN__} handler is installed that logs to
Log::Dispatch::FileRotate and log_message issues a warning.
- multiple dispatchers are in logit() at the same time.
- Abstract locking functions into Log::Dispatch::FileRotoate::Flock module.
- Remove flock()'ing of the logfile filehandle. Rely on the lock that
we hold on the "lockfile" instead to synchronize writes. [Github #12]
holding a lock on the lockfile when writing the log message.
- Various pod cleanups and enhancements (Thanks Emanuele Tomasi)
- Avoid multiple stat() calls on the same filehandle (Thanks Emanuele Tomasi)
- Add user_constraint option to use a custom function to determine when
rotation happens (Thanks Emanuele Tomasi).
- Move rotation code into its own function (Thanks Emanuele Tomasi)
-------------------------------------------------------------------
Tue Aug 15 05:42:33 UTC 2017 - coolo@suse.com
- updated to 1.30
see /usr/share/doc/packages/perl-Log-Dispatch-FileRotate/Changes
1.30 Thu Aug 03 2017
- Docs: fix synopsis usage to "name" (incorrect) instead of filename
(correct) (Thanks Emanuele Tomasi)
- improve debug() routine so that all debug messages have the same layout
(Thanks Emanuele Tomasi)
- fix race condition in lockfile-race-condition.t [sic] (Thanks Emanuele
Tomasi)
-------------------------------------------------------------------
Thu Aug 3 05:43:55 UTC 2017 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Log-Dispatch-FileRotate
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,98 +12,54 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Log-Dispatch-FileRotate
Version: 1.29
Release: 0
%define cpan_name Log-Dispatch-FileRotate
Name: perl-Log-Dispatch-FileRotate
Version: 1.38
Release: 0
Summary: Log to Files that Archive/Rotate Themselves
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Log-Dispatch-FileRotate/
License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MS/MSCHOUT/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Date::Manip)
BuildRequires: perl(Log::Dispatch) >= 2.60
BuildRequires: perl(Log::Dispatch::File)
BuildRequires: perl(Log::Dispatch::Output)
BuildRequires: perl(Params::Validate)
BuildRequires: perl(Log::Dispatch::Screen)
BuildRequires: perl(Path::Tiny) >= 0.018
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Warn)
BuildRequires: perl(version)
Requires: perl(Date::Manip)
Requires: perl(Log::Dispatch) >= 2.60
Requires: perl(Log::Dispatch::File)
Requires: perl(Log::Dispatch::Output)
Requires: perl(Params::Validate)
Requires: perl(version)
%{perl_requires}
%description
This module provides a simple object for logging to files under the
Log::Dispatch::* system, and automatically rotating them according to
different constraints. This is basically a Log::Dispatch::File wrapper with
additions. To that end the arguments
name, min_level, filename and mode
behave the same as Log::Dispatch::File. So see its man page (perldoc
Log::Dispatch::File)
The arguments size and max specify the maximum size and maximum number of
log files created. The size defaults to 10M and the max number of files
defaults to 1. If DatePattern is not defined then we default to working in
size mode. That is, use size values for deciding when to rotate.
Once DatePattern is defined FileRotate will move into time mode. Once this
happens file rotation ignores size constraints, unless check_both, and uses
the defined date pattern constraints.
If you setup a config file using Log::Log4perl::init_and_watch() or the
like, you can switch between modes just by commenting out the DatePattern
line.
When using DatePattern make sure TZ is defined correctly and that the TZ
you use is understood by Date::Manip. We use Date::Manip to generate our
recurrences. Bad TZ equals bad recurrences equals surprises! Read the
Date::Manip man page for more details on TZ.
DatePattern will default to a daily rotate if your entered pattern is
incorrect. You will also get a warning message.
If you have multiple writers that were started at different times you will
find each writer will try to rotate the log file at a recurrence calculated
from its start time. To sync all the writers just use a config file and
update it after starting your last writer. This will cause
Log::Dispatch::FileRotate->new() to be called by each of the writers close
to the same time, and if your recurrences aren't too close together all
should sync up just nicely.
I initially assumed a long running process but it seems people are using
this module as part of short running CGI programs. So, now we look at the
last modified time stamp of the log file and compare it to a previous
occurance of a DatePattern, on startup only. If the file stat shows the
mtime to be earlier than the previous recurrance then I rotate the log
file.
We handle multiple writers using flock().
This module extends the base class Log::Dispatch::Output to provides a
simple object for logging to files under the Log::Dispatch::* system, and
automatically rotating them according to different constraints. This is
basically a Log::Dispatch::File wrapper with additions.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -111,7 +67,6 @@ find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE