mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 23:00:48 +00:00
12 lines
254 B
Ruby
12 lines
254 B
Ruby
require "logger"
|
|
|
|
module Voicemeeter
|
|
module Logging
|
|
def logger
|
|
@logger ||= Logger.new($stdout, level: ENV.fetch("VM_LOG_LEVEL", "WARN"))
|
|
@logger.progname = instance_of?(::Module) ? name : self.class.name
|
|
@logger
|
|
end
|
|
end
|
|
end
|