Module: Voicemeeter::Logging

Included in:
Base, Button::Base, CBindings, Configs::FileReader, Configs::Loader, Events::Tracker, IRemote, Install, Remote, Worker
Defined in:
lib/voicemeeter/logger.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



3
4
5
6
7
# File 'lib/voicemeeter/logger.rb', line 3

def logger
  @logger ||= Logger.new($stdout, level: ENV.fetch("VM_LOG_LEVEL", "WARN"))
  @logger.progname = instance_of?(::Module) ? name : self.class.name
  @logger
end