NAME
Log::Delta - Logging object with timing and caller information
SYNOPSIS
use Log::Delta;
my $log = Log::Delta->new();
$log->l('A log message');
print $log->as_string();
Will produce the following output:
0.00000 (+0.00000) Log Init at 1112962701.93193
0.00006 (+0.00006) main:3 A log message
DESCRIPTION
Log::Delta is a simple Log utility with hi-resolution timing. It is suitable for basic performance analysis.
METHODS
new( )
Create a new Log::Delta object.
l($message)
Add an entry to the log with the current time as specified by Time::HiRes.
as_string( )
Print all entries in the log ordered by time. The first column specifies how many seconds after log creation the entry was added. The second column specifies how long between the current entry and the previous one.
REQUIRES
SEE ALSO
This module was written for the Rekudos framework: http://rekudos.net/
AUTHOR
Mark Lawrence <nomad@null.net>
COPYRIGHT AND LICENSE
Copyright (C) 2004,2005 Mark Lawrence <nomad@null.net>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.