modify log messages