summaryrefslogtreecommitdiff
path: root/Echolot/Log.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Echolot/Log.pm')
-rw-r--r--Echolot/Log.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Echolot/Log.pm b/Echolot/Log.pm
index e156a3a..94838fd 100644
--- a/Echolot/Log.pm
+++ b/Echolot/Log.pm
@@ -19,6 +19,7 @@ use Carp qw{};
#use Time::HiRes qw( gettimeofday );
my %LOGLEVELS = qw{
+ trace 8
debug 7
info 6
notice 5
@@ -88,6 +89,9 @@ sub log_message($$) {
$LOGFH->flush();
};
+sub trace($) {
+ log_message('trace', $_[0]);
+};
sub debug($) {
log_message('debug', $_[0]);
};