2 # Perl module for Logging
4 # (c) 2007 Pavel Charvat <pchar@ucw.cz>
16 our @ISA = qw(Exporter);
18 our %EXPORT_TAGS = ( all => [qw(&Log &Die)]);
19 our @EXPORT_OK = (@{$EXPORT_TAGS{'all'}});
21 my $Prog = (reverse split(/\//, $0))[0];
25 my $text = join(' ', @_);
26 print STDERR $level, strftime(" %Y-%m-%d %H:%M:%S ", localtime()), "[$Prog] ", $text, "\n";