Added logger to API