1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!/usr/bin/perl
=head1 AUTHOR
Jonny Schulz <jschulz.cpan(at)bloonix.de>
=head1 DESCRIPTION
This script shows you an example for the runtime patterns.
=head1 POWERED BY
_ __ _____ _____ __ __ __ __ __
| |__| | | | \| |__|\ \/ /
| . | | | | | | | | > <
|____|__|_____|_____|__|\__|__|/__/\__\
=head1 COPYRIGHT
Copyright (C) 2007-2009 by Jonny Schulz. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
=cut
use strict;
use warnings;
use Log::Handler;
my $log = Log::Handler->new();
$log->add(
screen => {
maxlevel => 'debug',
message_layout => '%T %L %m runtime: %t, total runtime: %r%N',
}
);
while ( 1 ) {
$log->debug('--->');
sleep 1;
}
|