Changeset 401

Show
Ignore:
Timestamp:
05/29/07 16:48:00 (1 year ago)
Author:
kindlund
Message:

Updated manager syslog support.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Agent/Driver/Browser.pm

    r316 r401  
    234234# TODO: Need unit testing. 
    235235use URI::URL; 
     236 
     237# Include Logging Library 
     238use Log::Log4perl qw(:easy); 
     239 
     240# The global logging object. 
     241our $LOG = get_logger(); 
    236242 
    237243=pod 
     
    10251031    if ($self->_remaining_number_of_relative_links_to_visit == 1) { 
    10261032 
    1027         # XXX: Delete this, eventually. 
    1028         print "Resetting relative links to visit counter.\n"
     1033        # XXX: Do we need this message in here? 
     1034        $LOG->info("Resetting relative links to visit counter.")
    10291035 
    10301036        # The counter has reached one, so drop all other relative links 
  • honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Agent/Integrity/Filesystem.pm

    • Property svn:executable deleted
  • honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Agent/Integrity/Registry.pm

    r396 r401  
    432432            $fname = $parser->getFilename(); 
    433433            if (defined($fname) && (-f $fname)) { 
    434                 # XXX: Change this to debug, eventually. 
    435                 $LOG->info("Deleting temporary '" . $hive . "' hive data in '" . 
     434                $LOG->debug("Deleting temporary '" . $hive . "' hive data in '" . 
    436435                            $fname . "'."); 
    437436                if (!unlink($fname)) { 
  • honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Manager.pm

    r382 r401  
    194194use IO::File; 
    195195 
     196# TODO: Include unit tests. 
     197# Include Logging Library 
     198use Log::Log4perl qw(:easy); 
     199 
     200# The global logging object. 
     201our $LOG = get_logger(); 
     202 
    196203# Complete URL of SOAP server, when initialized. 
    197204our $URL_BASE       : shared = undef; 
     
    318325    } 
    319326 
     327    $LOG->warn(__PACKAGE__ . "->_handleFault(): Error occurred during processing.\n" . $errMsg); 
    320328    Carp::carp __PACKAGE__ . "->_handleFault(): Error occurred during processing.\n" . $errMsg; 
    321329} 
     
    335343sub _cleanup { 
    336344 
    337     print "Cleaning up...\n"
     345    $LOG->info("Cleaning up.")
    338346 
    339347    # Mask all possible signals, so that we don't call this function multiple times. 
     
    368376        # of cleanup up the clones. 
    369377        HoneyClient::Manager::VM->init(); 
    370         print "Calling suspendVM(config => $vmCloneConfig)...\n"
     378        $LOG->info("Calling suspendVM(config => " . $vmCloneConfig . ").")
    371379        my $stubVM = getClientHandle(namespace     => "HoneyClient::Manager::VM"); 
    372380        $stubVM->suspendVM(config => $vmCloneConfig); 
     
    378386    if (length($STATE_FILE) > 0 && 
    379387        defined($globalAgentState)) { 
    380         print "Saving state to '" . $STATE_FILE . "'...\n"
     388        $LOG->info("Saving state to '" . $STATE_FILE . "'.")
    381389        my $dump_file = new IO::File($STATE_FILE, "w"); 
    382390 
     
    592600        } 
    593601    } 
     602 
     603    $LOG->info("Created clone '" . $vmName . "' using IP (" . $vmIP . ") and MAC (" . $vmMAC . ")."); 
    594604 
    595605    # Build our VM's connection table.