Added logging test code