Pass logger config as hash here

This commit is contained in:
Matthias Beyer 2017-02-21 10:35:34 +01:00
parent 2beb79581d
commit 10a6dc4322

View file

@ -13,7 +13,10 @@ module Imag
module Logger
def self.init debug, verbose, color
def self.init cfg
debug = !!cfg[:debug]
verbose = !!cfg[:verbose]
color = !!cfg[:color]
RImag.init_logger debug, verbose, color
end
@ -86,7 +89,7 @@ if __FILE__ == $0
exit 1
end
Imag::Logger.init true, true, true
Imag::Logger.init debug: true, verbose: true, color: true
Imag::Logger.info "The Logger should work now"
Imag::Logger.info "Lets see whether we have properly setup StoreId"