lithium\analysis\logger\adapter\FirePhp::write PHP Method

write() public method

Appends a log message to the response header for FirePHP.
public write ( string $priority, string $message ) : boolean
$priority string Represents the message priority.
$message string Contains the actual message to store.
return boolean Always returns `true`. Note that in order for message-writing to take effect, the adapter must be bound to the `Response` object instance associated with the current request. See the `bind()` method.
    public function write($priority, $message)
    {
        $_self =& $this;
        return function ($self, $params) use(&$_self) {
            $priority = $params['priority'];
            $message = $params['message'];
            $message = $_self->invokeMethod('_format', array($priority, $message));
            $_self->invokeMethod('_write', array($message));
            return true;
        };
    }