- added build files for upcoming version 1.1.2

- improved ajax authentication check and "logout" notification | closed #198
- improved logging, added missing log file configuration to pathfinder.ini
- added  logging for "unauthorized" requests | closed #198
- updated js "jQuery" 1.11.3 -> 3.0.0 | #206
- updated js "datatables" plugin 1.10.7 -> 1.10.12 | #206
- updated js "mCustomScrollbar" 3.1.14 -> 3.1.4 | #206
This commit is contained in:
Exodus4D
2016-07-11 20:35:25 +02:00
parent f943f31d9a
commit cdd1846431
72 changed files with 1732 additions and 10632 deletions

View File

@@ -11,28 +11,22 @@ namespace controller;
class LogController extends Controller {
/**
* get an singleton instance for a logger instance
* @param $logFileName
* @return mixed
* get Logger instance
* @param string $type
* @return \Log|null
*/
public static function getLogger($logFileName){
public static function getLogger($type){
$f3 = \Base::instance();
$hiveKey = 'LOGGER' . $logFileName;
// check if log controller already exists
if( !$f3->exists($hiveKey) ){
// create new logger instance
$logFile = $logFileName . '.log';
$f3->set($hiveKey, new \Log($logFile));
$logFiles = $f3->get('PATHFINDER.LOGFILES');
$logger = null;
if( !empty($logFiles[$type]) ){
$logFile = $logFiles[$type] . '.log';
$logger = new \Log($logFile);
}
return $f3->get($hiveKey);
return $logger;
}
}