Updated the Castle logger to use new logger provider contract.