change log file path

This commit is contained in:
gamonoid
2017-09-04 08:47:41 +02:00
parent 6ee15d7c32
commit b75925dcc2
2 changed files with 3 additions and 1 deletions

View File

@@ -8,4 +8,4 @@ php:
- '5.6'
- '7.0'
- nightly
after_failure: "cat /tmp/icehrm.test.log"
after_failure: "cat app/data/icehrm.log"

View File

@@ -24,6 +24,8 @@ class LogManager
self::$me->log->pushHandler(new StreamHandler(ini_get('error_log'), LOG_LEVEL));
} else if(is_writable(iCLIENT_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(CLIENT_BASE_PATH.'/tmp/icehrm.log', LOG_LEVEL));
}
}
return self::$me;