lithium\analysis\logger\adapter\FirePhp::write()

public method

Appends a log message to the response header for FirePHP.

Parameters

  • string $priority

    Represents the message priority.

  • string $message

    Contains the actual message to store.

Returns

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.

Source

	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;
		};
	}