Drupal 7 如何使用Drupal 7配置Log4HP?

Drupal 7 如何使用Drupal 7配置Log4HP?,drupal-7,drupal-modules,log4php,Drupal 7,Drupal Modules,Log4php,在试用了许多可用补丁后,使用Drupal 7配置了模块。完成此操作后,模块已成功安装 仍然没有登录.log文件。使用基本PHP应用程序进行测试,以确保Log4HP安装正确。它确实适用于我的测试应用程序 Drupal7没有运气 感谢您的帮助。不确定原因,但在log4php.module文件中替换这些行 function _log4php_get_path() { // Check for preferred PEAR installation (or within module

在试用了许多可用补丁后,使用Drupal 7配置了模块。完成此操作后,模块已成功安装

仍然没有登录.log文件。使用基本PHP应用程序进行测试,以确保Log4HP安装正确。它确实适用于我的测试应用程序

Drupal7没有运气


感谢您的帮助。

不确定原因,但在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文件中