for example for Nginx something like:
log_format logfmt '$remote_country - [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_generic_user_agent" "$gzip_ratio"';
That would assume access to a GeoIP database, but it would be helpful.