Sha256: 8e077088e972ad233911d0c72f189f623a4122a970a208ac908deb4994add5c7
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
module Sc4ry class Logger @@loggers = {:stdout => ::Logger.new(STDOUT)} @@current = :stdout def Logger.list_avaible return @@loggers end def Logger.current return @@current end def Logger.get return @@loggers[@@current] end def Logger.current=(sym) raise "Logger not define : #{sim}" unless @@loggers.keys.include? sim @@default = sym end def Logger.register(options = {}) @@loggers[options[:name]] = options[:instance] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sc4ry-0.1.0 | lib/sc4ry/logger.rb |