Sha256: e8332ee29ab85a368cd7ba1517a72938d65b6bc218262007ea43d33ef0fff482
Contents?: true
Size: 298 Bytes
Versions: 35
Compression:
Stored size: 298 Bytes
Contents
class LoggerFactory include SmartIoC::Iocify class SmartIoCLogger end class SimpleLogger end bean :logger, factory_method: :get_logger inject :config def get_logger if config.app_name == 'SmartIoC' SmartIoCLogger.new else SimpleLogger.new end end end
Version data entries
35 entries across 35 versions & 1 rubygems