add optional socket hook to logger

@anthonybishopric  @petertseng 
worked in my unit test, i'll see if i can easily get []byte from the entry though to keep it copacetic