public function write($priority, $message) {
		return function($params) {
			$path = $this->_config['path'] . '/' . $this->_config['file']($params, $this->_config);
			$params['timestamp'] = date($this->_config['timestamp']);
			$message = Text::insert($this->_config['format'], $params);
			return file_put_contents($path, $message, FILE_APPEND);
		};
	}
public function write($priority, $message) {
		return function($params) {
			$path = $this->_config['path'] . '/' . $this->_config['file']($params, $this->_config);
			$params['timestamp'] = date($this->_config['timestamp']);
			$message = Text::insert($this->_config['format'], $params);
			return file_put_contents($path, $message, FILE_APPEND);
		};
	}
public function write ( $ priority , $ message ) { return function ( $ params ) { $ path = $ this -> _config [ 'path' ] . '/' . $ this -> _config [ 'file' ] ( $ params , $ this -> _config ) ; $ params [ 'timestamp' ] = date ( $ this -> _config [ 'timestamp' ] ) ; $ message = Text :: insert ( $ this -> _config [ 'format' ] , $ params ) ; return file_put_contents ( $ path , $ message , FILE_APPEND ) ; } ; }
Appends a message to a log file.

@see lithium\analysis\Logger::$_priorities
@param string $priority The message priority. See `Logger::$_priorities`.
@param string $message The message to write to the log.
@return \Closure Function returning boolean `true` on successful write, `false` otherwise.
Appends a message to a log file .