src/base/ErrorHandler.php
protected function flushLogger()
    {
        if ($this->logger instanceof \Yiisoft\Log\Logger) {
            $this->logger->flush(true);
            // attempt to invoke logger destructor:
            unset($this->logger);
        }
        // TODO how?
        // Yii::setLogger(null);
    }
protected function flushLogger()
    {
        if ($this->logger instanceof \Yiisoft\Log\Logger) {
            $this->logger->flush(true);
            // attempt to invoke logger destructor:
            unset($this->logger);
        }
        // TODO how?
        // Yii::setLogger(null);
    }
protected function flushLogger ( ) { if ( $ this -> logger instanceof \ Yiisoft \ Log \ Logger ) { $ this -> logger -> flush ( true ) ; // attempt to invoke logger destructor: unset ( $ this -> logger ) ; } // TODO how? // Yii::setLogger(null); }
Attempts to flush logger messages.
@since 3.0.0
Attempts to flush logger messages .