Added logging class and ApiMethod declaration