lithium\analysis\Logger::__callStatic PHP 메소드

__callStatic() 공개 정적인 메소드

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')
public static __callStatic ( string $priority, array $params ) : boolean
$priority string The name of the method called on the `Logger` class. This should map to a log type.
$params array An array of parameters passed in the method.
리턴 boolean Returns `true` or `false`, depending on the success of the `write()` method.
    public static function __callStatic($priority, $params)
    {
        $params += array(null, array());
        return static::write($priority, $params[0], $params[1]);
    }