Made logging a trait, added service extraction error handling, adjusted logging