Horde_Log_Logger::__call PHP Method

__call() public method

Undefined method handler allows a shortcut:
$log->levelName('message');
  instead of
$log->log('message', Horde_Log_LEVELNAME);
public __call ( string $method, string $params )
$method string Log level name.
$params string Message to log.
    public function __call($method, $params)
    {
        $levelName = Horde_String::upper($method);
        if (isset($this->_levels[$levelName])) {
            $this->log(array_shift($params), $this->_levels[$levelName]);
        } else {
            throw new Horde_Log_Exception('Bad log level ' . $levelName);
        }
    }