Logger integration + error handling