2013-07-27 76 views

回答

0

不知道爲什麼,但在log4php.module文件

function _log4php_get_path() { 
     // Check for preferred PEAR installation (or within module directory) 
     if (file_exists('log4php/Logger.php')) { 
     $path = 'log4php/Logger.php'; 
     } 
     elseif (module_exists('libraries')) { 
     // Use Libraries module, if available 
     if (file_exists(libraries_get_path('log4php') . '/Logger.php')) { 
      // check if the library is in the recommended location 
      $path = libraries_get_path('log4php') . '/Logger.php'; 
     } 
     elseif (file_exists(libraries_get_path('log4php') . '/src/main/php/Logger.php')) { 
      // check if the library has been downloaded directly into libraries folder 
      // this caters for drush make files 
      $path = libraries_get_path('log4php') . '/src/main/php/Logger.php'; 
     } 
     } 

     return isset($path) ? $path : NULL; 
    } 

與此

function _log4php_get_path() { 
     // Check for preferred PEAR installation (or within module directory) 
     $path = 'log4php/Logger.php'; 
      return $path; 
    } 

更換這些線路的今天沒工作。現在看門狗事件正在記錄在.log文件中。