Not sure of why but replacing these lines in log4php.module file
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;
}
with this
function _log4php_get_path() {
// Check for preferred PEAR installation (or within module directory)
$path = 'log4php/Logger.php';
return $path;
}
did worked today. Now watchdog events are being logged in .log file.