Changed logging to use Object[]