add logger to adapter