logger.c update