Restructuring unit/integration tests
This commit is contained in:
@@ -22,10 +22,8 @@ class LogManager
|
||||
self::$me->log = new Logger(APP_NAME);
|
||||
if (is_writable(ini_get('error_log'))) {
|
||||
self::$me->log->pushHandler(new StreamHandler(ini_get('error_log'), LOG_LEVEL));
|
||||
} else if(is_writable(iCLIENT_BASE_PATH.'data/app.log')){
|
||||
} else if(is_writable(CLIENT_BASE_PATH.'data/app.log')){
|
||||
self::$me->log->pushHandler(new StreamHandler(CLIENT_BASE_PATH.'data/app.log', LOG_LEVEL));
|
||||
} else {
|
||||
self::$me->log->pushHandler(new StreamHandler('/tmp/icehrm.log', LOG_LEVEL));
|
||||
}
|
||||
}
|
||||
return self::$me;
|
||||
|
||||
Reference in New Issue
Block a user