add logger to callback