Created logger for api