Ignore:
Timestamp:
Aug 27, 2008 6:58:33 AM (5 years ago)
Author:
alec
Message:
  • added options to use syslog instead of log file (#1484850)
  • added Logging & Debugging section in Installer
  • fixed config from $_POST for next installer steps saving
  • fixed and re-enabled debug_level setting in installer
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/bugs.inc

    r1291 r1683  
    8585       
    8686    // try to open specific log file for writing 
    87     if ($fp = @fopen($CONFIG['log_dir'].'/errors', 'a')) 
     87    if ($CONFIG['log_driver'] == 'syslog') 
    8888    { 
     89      syslog(LOG_ERR, $log_entry); 
     90    } 
     91    else if ($fp = @fopen($CONFIG['log_dir'].'/errors', 'a')) 
     92    { 
     93      // log_driver == 'file' is the default, assumed here. 
    8994      fwrite($fp, $log_entry); 
    9095      fclose($fp); 
Note: See TracChangeset for help on using the changeset viewer.