Closed zacg closed 9 years ago
Is there a way to include the clients ip address in the msg format string?
Not tested, but if you're using a proxy:
{{ req.headers['x-forwarded-for'] || req.connection.remoteAddress }}
If you're not using a proxy:
{{ req.connection.remoteAddress }}
Thanks that works.
Is there a way to include the clients ip address in the msg format string?