Wrong method name, should be: `setLogger`.