IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23675


Ignore:
Timestamp:
Apr 2, 2009, 11:19:29 AM (17 years ago)
Author:
jhoblitt
Message:

add email logging of events to nebdiskd

Location:
trunk/Nebulous-Server
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/Build.PL

    r23655 r23675  
    2424        'Filesys::Df'           => '0.92',
    2525        'Log::Log4perl'         => '0.48',
     26        'Log::Dispatch::Email::MailSend' => 0,
    2627        'Net::Server::Daemonize'=> '0.05',
    2728        'Params::Validate'      => '0.73',
  • trunk/Nebulous-Server/Changes

    r23655 r23675  
    66    - base the on disk directory hashing of files only on the dirname()
    77      component of keys
    8 
     8    - add email logging of events to nebdiskd
     9     
    9100.16
    1011    - add so_id/name idxs to storage_object_xattr table
  • trunk/Nebulous-Server/bin/nebdiskd

    r23654 r23675  
    8787
    8888# start up logging
    89 my $conf =<<END;
    90     log4perl.category.nebdiskd = WARN, Screen, SERVERLOGFILE
     89my $conf = '
     90    log4perl.category.nebdiskd = WARN, Screen, SERVERLOGFILE, Mailer
    9191
    9292    log4perl.appender.Screen        = Log::Log4perl::Appender::Screen
    9393    log4perl.appender.Screen.stderr = 1
    9494    log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout
    95     log4perl.appender.Screen.layout.ConversionPattern = %d | %H | %p | %M - %m%n
     95    log4perl.appender.Screen.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} | %H | %p | %M - %m%n
    9696
    9797    log4perl.appender.SERVERLOGFILE           = Log::Log4perl::Appender::File
     
    100100    log4perl.appender.SERVERLOGFILE.layout    = Log::Log4perl::Layout::PatternLayout
    101101    log4perl.appender.SERVERLOGFILE.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} | %H | %p | %M - %m%n
    102 END
     102
     103    log4perl.filter.MatchWarn  = Log::Log4perl::Filter::LevelMatch
     104    log4perl.filter.MatchWarn.LevelToMatch  = WARN
     105    log4perl.filter.MatchWarn.AcceptOnMatch = off
     106
     107    log4perl.appender.Mailer         = Log::Dispatch::Email::MailSend
     108    log4perl.appender.Mailer.to      = ps-ipp-ops@ifa.hawaii.edu
     109    log4perl.appender.Mailer.subject = nebdiskd alert
     110    log4perl.appender.AppError.Filter= MatchWarn
     111    log4perl.appender.Mailer.layout = Log::Log4perl::Layout::PatternLayout
     112    log4perl.appender.Mailer.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} | %H | %p | %M - %m%n
     113';
    103114Log::Log4perl::init(\$conf);
    104115my $log = Log::Log4perl::get_logger("nebdiskd");
Note: See TracChangeset for help on using the changeset viewer.