voicemeeter-rb/lib/voicemeeter/logger.rb
onyx-and-iris f14a549c03 now using standard Ruby logger module
easy_logging removed from dependencies

@configs now raises error on invalid key
2023-07-16 11:08:24 +01:00

12 lines
217 B
Ruby

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