change log file path
This commit is contained in:
@@ -8,4 +8,4 @@ php:
|
|||||||
- '5.6'
|
- '5.6'
|
||||||
- '7.0'
|
- '7.0'
|
||||||
- nightly
|
- nightly
|
||||||
after_failure: "cat /tmp/icehrm.test.log"
|
after_failure: "cat app/data/icehrm.log"
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ class LogManager
|
|||||||
self::$me->log->pushHandler(new StreamHandler(ini_get('error_log'), LOG_LEVEL));
|
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(iCLIENT_BASE_PATH.'data/app.log')){
|
||||||
self::$me->log->pushHandler(new StreamHandler(CLIENT_BASE_PATH.'data/app.log', LOG_LEVEL));
|
self::$me->log->pushHandler(new StreamHandler(CLIENT_BASE_PATH.'data/app.log', LOG_LEVEL));
|
||||||
|
} else {
|
||||||
|
self::$me->log->pushHandler(new StreamHandler(CLIENT_BASE_PATH.'/tmp/icehrm.log', LOG_LEVEL));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return self::$me;
|
return self::$me;
|
||||||
|
|||||||
Reference in New Issue
Block a user