markhilton / monolog-mysql

Laravel 5 log to MySQL database
42 stars 19 forks source link

IPv6 Support #3

Open ilumos opened 6 years ago

ilumos commented 6 years ago

Hi there,

Great log handler!

Currently the handler uses ip2long() to record the remote IP, and this function does not support IPv6 addresses.

Please consider using inet_ntop and MySQL's VARBINARY field type to store IPv4 and IPv6 addresses.

Many thanks!