Adding socket-related logging messages.