voicemeeter-rb/lib/voicemeeter/logger.rb
2023-07-18 08:19:17 +01:00

12 lines
220 B
Ruby

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