Sha256: de4e17bd2ad10d03538be87cfe2a916df2da0d3cd922c33932d03c2a3dbb3a67
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 KB
Contents
module Oxidized class OxidizedError < StandardError; end Directory = File.expand_path(File.join(File.dirname(__FILE__), '../')) require 'oxidized/string' require 'oxidized/config' require 'oxidized/config/vars' require 'oxidized/worker' require 'oxidized/nodes' require 'oxidized/manager' require 'oxidized/hook' require 'oxidized/core' def self.asetus @@asetus end def self.asetus=(val) @@asetus = val end def self.config asetus.cfg end def self.logger @@logger end def self.logger=(val) @@logger = val end def self.setup_logger self.logger = if config.has_key?('use_syslog') && config.use_syslog require 'syslog/logger' Syslog::Logger.new('oxidized') else require 'logger' if config.has_key?('log') Logger.new(config.log) else Logger.new(STDERR) end end logger.level = Logger::INFO unless config.debug end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.12.2 | lib/oxidized.rb |
oxidized-0.12.1 | lib/oxidized.rb |
oxidized-0.12.0 | lib/oxidized.rb |
oxidized-0.11.0 | lib/oxidized.rb |
oxidized-0.10.0 | lib/oxidized.rb |