Take API instance instead of class; Provide Logger formatter; Test logging a bit