def init_logs(self, path=None, target=None, level=None,<EOL>server_hostname=None, extra=None):
path = path if path is not None else self.path<EOL>target = target if target is not None else self.target<EOL>level = level if level is not None else logging.DEBUG<EOL>server_hostname = (server_hostname if server_hostname is not None<EOL>else '<STR_LIT:localhost>')<EOL>extra = extra if extra is not None else {'<STR_LIT>': None}<EOL>init_logs(path=path, target=target, level=level,<EOL>server_hostname=server_hostname, fields=extra)<EOL>
Simple canned way to initialize pyzlog.

        Initialize pyslog for tests. If path or target are not
        specified, will default to path and target properties on the
        object. leve will default to logging.DEBUG, server_hostname
        defaults to localhost, and extra defaults to {'extra': None}

        :param path: path to find the log file
        :param target: name of the log file
        :param level: log level for this instance
        :param server_hostname: hostname to put in each entry
        :param extra: whitelist/defaults of extra fields to add to each entry
        :type path: string
        :type target: string
        :type level: int
        :type server_hostname: string
        :type extra: dict