Fix module call path

This commit is contained in:
Matthias Beyer 2017-04-21 16:41:49 +02:00
parent 095b22861d
commit 883c3a5b7a

View file

@ -36,37 +36,37 @@ module Imag
debug = !!cfg[:debug] debug = !!cfg[:debug]
verbose = !!cfg[:verbose] verbose = !!cfg[:verbose]
color = !!cfg[:color] color = !!cfg[:color]
RImag.init_logger debug, verbose, color ::RImag.init_logger debug, verbose, color
end end
# Log text with "trace" level in imag # Log text with "trace" level in imag
def self.trace msg def self.trace msg
RImag.trace msg ::RImag.trace msg
end end
# Log text with "debug" level in imag # Log text with "debug" level in imag
def self.dbg msg def self.dbg msg
RImag.dbg msg ::RImag.dbg msg
end end
# Log text with "debug" level in imag (alias for Imag::Logger::dbg) # Log text with "debug" level in imag (alias for Imag::Logger::dbg)
def self.debug msg def self.debug msg
RImag.debug msg ::RImag.debug msg
end end
# Log text with "info" level in imag # Log text with "info" level in imag
def self.info msg def self.info msg
RImag.info msg ::RImag.info msg
end end
# Log text with "warning" level in imag # Log text with "warning" level in imag
def self.warn msg def self.warn msg
RImag.warn msg ::RImag.warn msg
end end
# Log text with "error" level in imag # Log text with "error" level in imag
def self.error msg def self.error msg
RImag.error msg ::RImag.error msg
end end
end end