socket logger for handling logging from multiple processes