applied info/error logs on each api methods