def set_basic_params(
            self, no_requests=None, template=None, memory_report=None, prefix=None, prefix_date=None,
            apply_strftime=None, response_ms=None, ip_x_forwarded=None):
        """

        :param bool no_requests: Disable requests logging - only uWSGI internal messages
            and errors will be logged.

        :param str|unicode template: Set advanced format for request logging.
            This template string can use variables from ``Logging.Vars``.

        :param str|unicode prefix: Prefix log items with a string.

        :param str|unicode|bool prefix_date: Prefix log items with date string.
        
            .. note:: This can be ``True`` or contain formatting placeholders (e.g. %Y-%m-%d %H:%M:%S) 
               if used with ``apply_strftime``.

        :param int memory_report: Enable memory report.
                * **1** - basic (default);
                * **2** - uss/pss (Linux only)

        :param bool apply_strftime: Apply strftime to dates in log entries. 
            E.g. ``prefix_date`` can contain format placeholders. See also ``vars.REQ_START_FORMATTED``.

        :param bool response_ms: Report response time in microseconds instead of milliseconds.

        :param bool ip_x_forwarded: Use the IP from X-Forwarded-For header instead of REMOTE_ADDR.
            Used when uWSGI is run behind multiple proxies.

        """
        self._set('disable-logging', no_requests, cast=bool)
        self._set('log-format', template)
        self._set('memory-report', memory_report)
        self._set('log-prefix', prefix)

        if isinstance(prefix_date, string_types) and '%' in prefix_date:
            prefix_date = prefix_date.replace('%', '%%')  # Escaping.
                
        self._set('log-date', prefix_date, cast=(bool if isinstance(prefix_date, bool) else None))

        self._set('logformat-strftime', apply_strftime, cast=bool)
        self._set('log-micros', response_ms, cast=bool)
        self._set('log-x-forwarded-for', ip_x_forwarded, cast=bool)

        return self._section
def set_basic_params ( self , no_requests = None , template = None , memory_report = None , prefix = None , prefix_date = None , apply_strftime = None , response_ms = None , ip_x_forwarded = None ) : self . _set ( 'disable-logging' , no_requests , cast = bool ) self . _set ( 'log-format' , template ) self . _set ( 'memory-report' , memory_report ) self . _set ( 'log-prefix' , prefix ) if isinstance ( prefix_date , string_types ) and '%' in prefix_date : prefix_date = prefix_date . replace ( '%' , '%%' ) self . _set ( 'log-date' , prefix_date , cast = ( bool if isinstance ( prefix_date , bool ) else None ) ) self . _set ( 'logformat-strftime' , apply_strftime , cast = bool ) self . _set ( 'log-micros' , response_ms , cast = bool ) self . _set ( 'log-x-forwarded-for' , ip_x_forwarded , cast = bool ) return self . _section
:param bool no_requests: Disable requests logging - only uWSGI internal messages
            and errors will be logged.

        :param str|unicode template: Set advanced format for request logging.
            This template string can use variables from ``Logging.Vars``.

        :param str|unicode prefix: Prefix log items with a string.

        :param str|unicode|bool prefix_date: Prefix log items with date string.
        
            .. note:: This can be ``True`` or contain formatting placeholders (e.g. %Y-%m-%d %H:%M:%S) 
               if used with ``apply_strftime``.

        :param int memory_report: Enable memory report.
                * **1** - basic (default);
                * **2** - uss/pss (Linux only)

        :param bool apply_strftime: Apply strftime to dates in log entries. 
            E.g. ``prefix_date`` can contain format placeholders. See also ``vars.REQ_START_FORMATTED``.

        :param bool response_ms: Report response time in microseconds instead of milliseconds.

        :param bool ip_x_forwarded: Use the IP from X-Forwarded-For header instead of REMOTE_ADDR.
            Used when uWSGI is run behind multiple proxies.