use `Logger.deprecated` for deprecation warnings