mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2024-11-15 18:50:47 +00:00
onyx-and-iris
976c8f19a8
OBSWSConnectionError, OBSWSRequestError added they subclass OBSWSError readme updated with new error classes
10 lines
233 B
Ruby
10 lines
233 B
Ruby
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
|