public function write($level, $message, array $context = array())
    {
        if ($this->overflowed){
            return;
        }

        $backtraceLine = '';
        if ($this->logBacktrace) {
            $backtrace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 3);
            $backtrace = array_pop($backtrace);
            $backtraceLine = "{$backtrace['file']} : {$backtrace['line']}";
        }

        if (in_array($backtraceLine, $this->backtraces)) {
            $backtraceLine = '';
        } else {
            $this->backtraces []= $backtraceLine;
        }

        $this->json['rows'] []= array(
            $this->format('', $message, array('__context'=>$context)),
            $backtraceLine,
            $this->logLevelMappings[$level]
        );

        $this->setLastLogLine($message);
        $this->send();
    }