use File::Tree::Snapshot;
use System::Introspector::Config;
use System::Introspector::Logger qw(:log);
-use Log::Contextual::Destination;
-use Log::Contextual::SimpleLogger;
-use Object::Remote::Logging qw( );
-
GetOptions(
'c|config=s' => \my $config_file,
my $log_destination;
if (defined($log_level)) {
- $log_destination = Log::Contextual::Destination->new(
+ $log_destination = Object::Remote::LogDestination->new(
logger => Log::Contextual::SimpleLogger->new({ levels_upto => $log_level }),
);
- #$log_destination->connect(System::Introspector::Logger->arg_router);
- $log_destination->connect(Object::Remote::Logging->arg_router);
+ $log_destination->connect(System::Introspector::Logging->arg_router);
}
$config_file = "$storage_dir/main.conf" unless defined $config_file;
use System::Introspector::Logger qw( :log :dlog );
our @ISA = qw(Tie::StdHash);
+#TODO get this into one class with ::Array if possible
+
sub TIEHASH {
log_trace { "tieing report data to hash" };
return bless({}, $_[0]);