Module: OBSWS::Logging

Included in:
Base, Events::Client, Requests::Client
Defined in:
lib/obsws/logger.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



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

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