Updated code to 'log' writers replacing 'message' writers