Updated write to log commands.