Changeset 398

Show
Ignore:
Timestamp:
05/29/07 15:52:02 (1 year ago)
Author:
kindlund
Message:

Updated syslog support.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • honeyclient/branches/exp/kindlund-filesystem/etc/honeyclient.xml

    r380 r398  
    5454        etc/honeyclient_log.conf 
    5555    </log_config> 
     56    <syslog_address description="The IP address of the syslog server that all logging messages will be sent to by both Agent and Manager processes over UDP port 514." default="10.0.0.1"> 
     57        10.0.0.1 
     58    </syslog_address> 
    5659    <!-- HoneyClient::Agent Options --> 
    5760    <Agent> 
  • honeyclient/branches/exp/kindlund-filesystem/lib/HoneyClient/Util/Config.pm

    r396 r398  
    8282use XML::Tidy; 
    8383use Log::Log4perl qw(:easy); 
     84use Sys::Syslog; 
    8485use Data::Dumper; 
    8586 
     
    173174use XML::Tidy; 
    174175 
     176# Make sure Sys::Syslog loads 
     177BEGIN { use_ok('Sys::Syslog') 
     178        or diag("Can't load Sys::Syslog package. Check to make sure the package library is correctly listed within the path."); } 
     179require_ok('Sys::Syslog'); 
     180use Sys::Syslog; 
     181 
    175182# Make sure Data::Dumper loads 
    176183BEGIN { use_ok('Data::Dumper') 
     
    638645Log::Log4perl->init(getVar(name => "log_config")); 
    639646 
     647# Initialize Syslog Support 
     648$Sys::Syslog::host = getVar(name => "syslog_address"); 
     649 
    6406501; 
    641651