Added socket writes for trigger to logger