lithium\analysis\Logger::__callStatic()

public static method

Acts as a proxy for the write() method, allowing log message priority names to be called as methods, i.e.:

Logger::emergency('Something bad happened.');
// This is equivalent to Logger::write('emergency', 'Something bad happened')

Parameters

  • string $priority

    The name of the method called on the Logger class. This should map to a log type.

  • array $params

    An array of parameters passed in the method.

Returns

boolean

Returns true or false, depending on the success of the write() method.

Source

	public static function __callStatic($priority, $params) {
		$params += array(null, array());
		return static::write($priority, $params[0], $params[1]);
	}