mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2024-11-16 03:00:47 +00:00
12 lines
249 B
Ruby
12 lines
249 B
Ruby
require "logger"
|
|
|
|
module OBSWS
|
|
module Logging
|
|
def logger
|
|
@logger = Logger.new($stdout, level: ENV.fetch("OBSWS_LOG_LEVEL", "WARN"))
|
|
@logger.progname = instance_of?(::Module) ? name : self.class.name
|
|
@logger
|
|
end
|
|
end
|
|
end
|