voicemeeter-rb/lib/voicemeeter/logger.rb

10 lines
236 B
Ruby
Raw Permalink Normal View History

module Voicemeeter
module Logging
def logger
2023-08-06 11:30:37 +01:00
@logger ||= Logger.new($stdout, level: ENV.fetch("VM_LOG_LEVEL", "WARN"))
2023-07-25 12:58:32 +01:00
@logger.progname = instance_of?(::Module) ? name : self.class.name
@logger
end
end
end