Add debug logging in file