Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Paranoid::Log::Buffer - Log Buffer Functions

Author

       Arthur Corliss (corliss@digitalmages.com)

Bugs And Limitations

Dependencies

       o   Paranoid::Debug

Description K

       This module implements named buffers to be used for logging purposes.  Each buffer is an fixed length
       array of message records.  Each message record consists of a two-element array, with the first element
       being the message time (in UNIX epoch seconds) and the second being the message text itself.

       With the exception of the dumpBuffer function this module is not meant to be used directly.
       Paranoid::Log should be your exclusive interface for logging.

       When creating a named buffer with Paranoid::Log you can specify a size option on a per-buffer basis.  The
       default size is 20.

Name

       Paranoid::Log::Buffer - Log Buffer Functions

Options

       The options recognized for use in the options hash are as follows:

           Option      Value       Description
           -----------------------------------------------------
           size        integer     number of entries to maintian
                                   in buffer

See Also

       o   Paranoid::Log

Subroutines/Methods

NOTE:  Given that this module is not intended to be used directly nothing is exported.

   initlogMsgaddLoggerdelLoggerdumpBuffer
         @entries = Paranoid::Log::Buffer::dumpBuffer($name);

       This dumps all current entries in the named buffer.  Each entry is an array reference to a two-element
       array.  The first element is the timestamp of the message (in UNIX epoch seconds), the second the actual
       message itself.

Synopsis

         use Paranoid::Log;

         startLogger('events', 'Buffer', PL_DEBUG, PL_GE);
         startLogger('crit-events', 'buffer', PL_CRIT, PL_EQ, { size => 100 });

         @messages = Paranoid::Log::Buffer::dumpBuffer($name);

Version

       $Id: lib/Paranoid/Log/Buffer.pm, 2.10 2022/03/08 00:01:04 acorliss Exp $

See Also