Sets a logger to be used within the SDK.