voicemeeter-rb/lib/voicemeeter/logger.rb

12 lines
217 B
Ruby
Raw Normal View History

require "logger"
module Voicemeeter
module Logging
def logger
@logger = Logger.new($stdout, level: ENV.fetch("LOG_LEVEL", "WARN"))
@logger.progname = self.class.name
@logger
end
end
end