source: branches/1.0/LATMOS-Accounts/bin/la-log-test @ 1341

Last change on this file since 1341 was 594, checked in by vivat, 14 years ago

Typos dans l'aide en ligne de commande

  • Property svn:executable set to *
  • Property svn:keywords set to Id Rev
File size: 682 bytes
Line 
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5use LATMOS::Accounts::Log;
6use Getopt::Long;
7use Pod::Usage;
8
9=head1 NAME
10
11    la-log-test - Tools to LATMOS::Account loggin system
12
13=head1 SYNOPSIS
14
15    la-log-test [options]
16
17=cut
18
19GetOptions(
20    'c|config=s' => \my $config,
21    'l|level=s'  => \my $level,
22    'list'       => \my $list,
23    'help'       => sub { pod2usage(0) },
24) or pod2usage();
25
26=head1 OPTIONS
27
28=over 4
29
30=item -c|--config configfile
31
32Use this configuration file instead of the default one.
33
34=item -l|--level level
35
36Set the log level
37
38=cut
39
40$level ||= 'LA_INFO';
41
42my $numlevel = eval "LATMOS::Accounts::Log::$level()";
43
44la_log($numlevel, "message from $0 ($level)");
Note: See TracBrowser for help on using the repository browser.