modify the logging