src/Logger.php
public function flush(bool $final = false): void
    {
        $messages = $this->messages;
        // https://github.com/yiisoft/yii2/issues/5619
        // new messages could be logged while the existing ones are being handled by targets
        $this->messages = [];

        $this->dispatch($messages, $final);
    }
public function flush(bool $final = false): void
    {
        $messages = $this->messages;
        // https://github.com/yiisoft/yii2/issues/5619
        // new messages could be logged while the existing ones are being handled by targets
        $this->messages = [];

        $this->dispatch($messages, $final);
    }
public function flush ( bool $ final = false ) : void { $ messages = $ this -> messages ; // https://github.com/yiisoft/yii2/issues/5619 // new messages could be logged while the existing ones are being handled by targets $ this -> messages = [ ] ; $ this -> dispatch ( $ messages , $ final ) ; }
Flushes log messages from memory to targets.
@param bool $final whether this is a final call during a request.
Flushes log messages from memory to targets .