If we use a logger rather than defaulting to stdout deprecation warnings are more likely to be seen (as a warning).