Warning: logger was loaded from the standard library, but will no longer be part of the default gems

Building Jekyll Get:
C:/Ruby34-x64/lib/ruby/gems/3.4.0/gems/jekyll-4.4.1/lib/jekyll.rb:26: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add logger to your Gemfile or gemspec to silence this warning.

Then:
In “C:\Ruby34-x64\lib\ruby\gems\3.4.0\gems\jekyll-4.4.1\lib\jekyll.rb”
Comment out
require “logger”

In gem add
gem “logger”

bundle install
bundle exec Jekyll build

Get
C:/Ruby34-x64/lib/ruby/gems/3.4.0/gems/jekyll-4.4.1/lib/jekyll/log_adapter.rb:8:in ‘class:LogAdapter’:
uninitialized constant Logger (NameError)

  :debug => ::Logger::DEBUG,