use a mock log object with error and trace