added logger to api views