Configure nginx log format

Where do I need to edit this to change the nginx log format on swag?

# Specifies the main log format.
        log_format main '$remote_addr - $remote_user [$time_local] "$request" '
                        '$status $body_bytes_sent "$http_referer" '
                        '"$http_user_agent" "$http_x_forwarded_for"'
                        '$request_time '
                        '$upstream_response_time '
                        '$upstream_connect_time '
                        '$upstream_header_time';

Thank you

Solved:
Need to use the tag main on the access_log path.