Sha256: 7984763b634935df0185d9b964b2add25d9f8bb369f6e751a9c3cf8c85b237f7
Contents?: true
Size: 870 Bytes
Versions: 3
Compression:
Stored size: 870 Bytes
Contents
# encoding: utf-8 # load a bunch of common classes here, so we don't have to track and repeat it # everywhere require 'active_support/all' require 'cgi' require 'date' require 'json' require 'servolux' require 'socket' # load all madvertise extensions Dir[File.join(File.dirname(__FILE__), 'ext', '*.rb')].each do |f| require f end Dir[File.join(File.dirname(__FILE__), '*.rb')].each do |f| require f end require 'madvertise/logging' # dedicated gem # initialize configuration and logger with hardcoded defaults $conf = Conf = Configuration.new $conf.callback do ImprovedLogger::Formatter.format = $conf.log_format $log = MultiLogger.new $log.attach(ImprovedLogger.new($conf.log_backend.to_sym, File.basename($0))) $log.level = $conf.log_level.downcase.to_sym $log.log_caller = $conf.log_caller end # trigger log callback with defaults $conf.reload!
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
madvertise-ext-0.5.3 | lib/madvertise/boot.rb |
madvertise-ext-0.5.2 | lib/madvertise/boot.rb |
madvertise-ext-0.5.1 | lib/madvertise/boot.rb |