Logging in-process refactoring