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);
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.
Option Value Description ----------------------------------------------------- size integer number of entries to maintian in buffer
@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.
a) the GNU General Public License <https://www.gnu.org/licenses/gpl-1.0.html> as published by the Free Software Foundation <http://www.fsf.org/>; either version 1 <https://www.gnu.org/licenses/gpl-1.0.html>, or any later version <https://www.gnu.org/licenses/license-list.html#GNUGPL>, or b) the Artistic License 2.0 <https://opensource.org/licenses/Artistic-2.0>,
subject to the following additional term: No trademark rights to ``Paranoid'' have been or are conveyed under any of the above licenses. However, ``Paranoid'' may be used fairly to describe this unmodified software, in good faith, but not as a trademark.
(c) 2005 - 2020, Arthur Corliss (corliss@digitalmages.com) (tm) 2008 - 2020, Paranoid Inc. (www.paranoid.com)
Copyright © 1997 - 2019, Arthur Corliss, all rights reserved.