's|storage=s' => \my $storage_dir,
'a|all' => \my $update_all,
'g|group=s' => \my @update_groups,
- 'v|verbose' => \my $verbose,
'd|debug' => \my $debug,
'l|log-level=s' => \my $log_level,
'h|help' => sub { pod2usage(0) },
$warn_destination->connect(System::Introspector::Logger->arg_router);
+$stdout_destination = Object::Remote::LogDestination->new(
+ logger => System::Introspector::Logger::VerboseOutput->new({
+ levels => ['info'],
+ }),
+);
+
+$stdout_destination->connect(System::Introspector::Logger->arg_router);
+
if (defined($log_level)) {
$stderr_destination = Object::Remote::LogDestination->new(
logger => System::Introspector::Logger::Output->new({
$stderr_destination->connect(System::Introspector::Logger->arg_router);
}
-if (defined($verbose)) {
- $stdout_destination = Object::Remote::LogDestination->new(
- logger => System::Introspector::Logger::VerboseOutput->new({
- levels_upto => 'info',
- }),
- );
-
- $stdout_destination->connect(System::Introspector::Logger->arg_router);
-}
-
$config_file = "$storage_dir/main.conf" unless defined $config_file;
my $config = System::Introspector::Config->new(config_file => $config_file);
Fetch the specified group. Can be used multiple times.
-=head2 -v, --verbose
-
-Output progress information to STDOUT
-
=head2 -d, --debug
Force the log level to debug unless -l or --log-level is specified