#144 fixed "Character not found" warning

This commit is contained in:
Exodus4D
2016-05-09 19:30:38 +02:00
parent 72f01b153d
commit 535c9af548
4 changed files with 12 additions and 19 deletions

View File

@@ -600,10 +600,12 @@ abstract class BasicModel extends \DB\Cortex {
/**
* debug log function
* @param string $text
* @param $text
* @param string $logFile
*/
public static function log($text){
Controller\LogController::getLogger('debug')->write($text);
public static function log($text, $logFile = null){
$logFile = isset($logFile) ? $logFile : self::getF3()->get('PATHFINDER.LOGFILES.DEBUG');
Controller\LogController::getLogger($logFile)->write($text);
}
/**