lithium\analysis\logger\adapter\Growl::write()
Writes $message to a new Growl notification.
Parameters
-
string
$priorityThe
Logger-based priority of the message. This value is mapped to a Growl-specific priority value if possible. -
string
$messageMessage to be shown.
-
array
$optionsAny options that are passed to the
notify()method. See the$optionsparameter ofnotify().
Returns
\ClosureFunction returning boolean true on successful write, false otherwise.
Source
public function write($priority, $message, array $options = []) {
return function($params) {
$priority = 0;
$options = $params['options'];
if (isset($options['priority']) && isset($this->_priorities[$options['priority']])) {
$priority = $this->_priorities[$options['priority']];
}
return $this->notify($params['message'], compact('priority') + $options);
};
}