./devel/p5-Log-Dispatch-FileRotate, Perl5 module to log to files which archive/rotate themselves

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.35, Package name: p5-Log-Dispatch-FileRotate-1.35, Maintainer: pkgsrc-users

This module provides a simple object for logging to files under the
Log::Dispatch::* system, automatically rotating them according to
different constraints. This is basically a Log::Dispatch::File wrapper
with additions.


Required to run:
[lang/perl5] [devel/p5-Date-Manip] [devel/p5-Params-Validate] [devel/p5-Log-Dispatch] [devel/p5-Log-Log4perl]

Required to build:
[devel/p5-Test-Warn] [devel/p5-namespace-autoclean] [filesystems/p5-Path-Tiny] [pkgtools/cwrappers] [devel/p5-Specio]

Master sites: (Expand)

SHA1: b7060068c2c62d1861e0e15a3b0591a1be5c9f9a
RMD160: e0840e1a71bbb42045a8ef5b2a0aa6ab5ad6a6ac
Filesize: 27.98 KB

Version history: (Expand)


CVS history: (Expand)


   2018-03-11 11:15:52 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Log-Dispatch-FileRotate: update to 1.35.

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.
   2017-09-17 12:46:42 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Log-Dispatch-FileRotate: update to 1.34.

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)

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)

1.29 Fri Jul 28 2017
    - Fix deadlock on Windows due to the fact that stat() on a filehandle vs a
      path doesn't return the same device field on Windows.

1.28 Thu Jul 27 2017
    *** Multiple fixes to locking code:
    - flock() can be interrupted by a syscall. work around by using a
      safe_flock() wrapper that retries if errno is EAGAIN (and also
      EWOULDBLOCK).
    - handle several possible race conditions between open() and flock().
    - DESTROY() was unlinking the lockfile (.logfile.LCK).  This was the cause
      of a race condition where multiple processes could enter the critical
      seciton at the same time.  Avoided by leaving .LCK files in place.
      Probably fixes #77075 (Thanks Emanuele Tomasi).
    - add author test for DESTROY lockfile race condition.

1.27 Thu Jul 06 2017
    - add "check_both" configuration option which allows the use of \ 
both time and
      size based rotation at the same time.  If either conditions require a
      rotation, a rotation will happen.  Default is false (previous behaviour).
      Thanks Emanuele Tomasi.  PR #6.
    - make signature test an "author" test and make Test::Signature \ 
optional
   2017-06-12 15:41:13 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Log-Dispatch-FileRotate to 1.26
------------------------------------------------
1.26 Tue May 09 2017
    - add SEE ALSO reference to Log::Dispath::File::Stamped (Thanks Karen
      Etheridge)
   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2017-04-19 14:07:18 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Log-Dispatch-FileRotate to 1.25
------------------------------------------------
1.25 Mon Apr 10 2017
    - Fix test failures if the test suite is running as root user.

(pkgsrc changes)
 - Adjust indentation
   2017-03-20 12:04:07 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Log-Dispatch-FileRotate to 1.24
------------------------------------------------
1.24 Tue Feb 14 2017
    - fix test failure on file-open-failure.t related to current locale
      setting.
    - improve fix to Date::Manip TZ deprecation warnings.
   2017-02-13 13:48:02 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Log-Dispatch-FileRotate to 1.23
------------------------------------------------
1.23 Thu Feb 09 2017
    - Issue a warning if the lockfile cannot be opened (Thanks KGOESS)
      [#63544]
    - Fix POD typo (Thanks Anirvan Chatterjee)
(pkgsrc changes)
  - Add LICENSE as ${PERL5_LICENSE}
  - Add BUILD_DEPENDS+= p5-Test-Warn-[0-9]*
   2016-10-12 14:44:42 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Log-Dispatch-FileRotate to 1.22
------------------------------------------------
1.22 Thu Oct 06 2016
    - Fix minor POD error (Thanks Matthias Schmitz) [#47665]
    - Remove Log::Log4perl dependency.  The tests now use Log::Dispatch
      directly instead of going through Log4perl. [#55359]
    - Split out "no activity" test case into its own file
    - Use Dist::Zilla to build the dist
    - Move test.pl to t/basic.t
    - Allow "size" parameter to contain underscores such as 10_000_000
      (recognized as 10000000) [#41064]
    - Add a signature test (optional, skipped if Module::Signature is not
      installed and only run if TEST_SIGNATURE=1 is passed to make test)
    - Docs: fix synopsis reference to size parameter to make it clear that
      the size is in bytes, not megabytes.  [#88286]
    - Docs: fix synopsis usage to "name" (incorrect) instead of filename
      (correct)

1.21
    [REMOVED] - accidental release, bad dist.

1.20 Sat Oct 01 2016
    - Fix Date::Manip warnings about deprecated TZ config variable. If
      Date::Manip 6.x or later is installed we now use SetDate instead.
(pkgsrc-changes)
  - Add BUILD_DEPENDS+= p5-Path-Tiny-[0-9]* for make test