public function flush()
    {
        //todo bugfix batch record
        foreach ($this->deferLogs as $k => $deferLog) {
            $this->record($deferLog['message'], $deferLog['context'], $deferLog['level'], $deferLog['role']);
            $this->removeDeferLog($k);
        }
    }
public function flush()
    {
        //todo bugfix batch record
        foreach ($this->deferLogs as $k => $deferLog) {
            $this->record($deferLog['message'], $deferLog['context'], $deferLog['level'], $deferLog['role']);
            $this->removeDeferLog($k);
        }
    }
public function flush ( ) { //todo bugfix batch record foreach ( $ this -> deferLogs as $ k => $ deferLog ) { $ this -> record ( $ deferLog [ 'message' ] , $ deferLog [ 'context' ] , $ deferLog [ 'level' ] , $ deferLog [ 'role' ] ) ; $ this -> removeDeferLog ( $ k ) ; } }
Flush defer logs
Flush defer logs