add optional socket hook to logger
Merge pull request #32 from mpuncel/mpuncel/log-to-socket

add optional socket hook to logger