lib/freyr.rb in freyr-0.3.7 vs lib/freyr.rb in freyr-0.3.8
- old
+ new
@@ -1,8 +1,15 @@
require 'forwardable'
+require 'logger'
module Freyr
+ def self.logger
+ @logger ||= Logger.new("/dev/null")
+ end
+ def self.logger= logger
+ @logger = logger
+ end
end
%w{version service_group service command service_info pinger process_info}.each do |f|
require File.expand_path(File.dirname(__FILE__)+"/freyr/#{f}.rb")
end