public function getLog()
    {
        if($this->app->exists(LoggerInterface::class)) {
            return $this->app->get(LoggerInterface::class);
        }
        $var_dir = $this->vars_dir . '/log/app.log';
        $logger  = new Logger('log');
        $logger->pushHandler(
            new FingersCrossedHandler(new StreamHandler($var_dir, Logger::DEBUG))
        );
        $this->app->set(LoggerInterface::class, $logger, true);
        return $logger;
    }
public function getLog()
    {
        if($this->app->exists(LoggerInterface::class)) {
            return $this->app->get(LoggerInterface::class);
        }
        $var_dir = $this->vars_dir . '/log/app.log';
        $logger  = new Logger('log');
        $logger->pushHandler(
            new FingersCrossedHandler(new StreamHandler($var_dir, Logger::DEBUG))
        );
        $this->app->set(LoggerInterface::class, $logger, true);
        return $logger;
    }
public function getLog ( ) { if ( $ this -> app -> exists ( LoggerInterface :: class ) ) { return $ this -> app -> get ( LoggerInterface :: class ) ; } $ var_dir = $ this -> vars_dir . '/log/app.log' ; $ logger = new Logger ( 'log' ) ; $ logger -> pushHandler ( new FingersCrossedHandler ( new StreamHandler ( $ var_dir , Logger :: DEBUG ) ) ) ; $ this -> app -> set ( LoggerInterface :: class , $ logger , true ) ; return $ logger ; }
get shared logger. use Monolog as default.

@return LoggerInterface
get shared logger . use Monolog as default .