Module: Graphiterb

Defined in:
lib/graphiterb.rb,
lib/graphiterb/utils.rb,
lib/graphiterb/sender.rb,
lib/graphiterb/monitors.rb,
lib/graphiterb/utils/log.rb,
lib/graphiterb/accumulator.rb,
lib/graphiterb/utils/system.rb,
lib/graphiterb/monitors/system.rb,
lib/graphiterb/monitors/disk_space.rb,
lib/graphiterb/monitors/directory_tree.rb,
lib/graphiterb/monitors/accumulations_consumer.rb

Defined Under Namespace

Modules: Monitors, Utils Classes: Accumulator, Sender

Constant Summary collapse

Error =
Class.new(StandardError)
NotImplementedError =
Class.new(Error)

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.logObject

Returns the value of attribute log.



5
6
7
# File 'lib/graphiterb/utils/log.rb', line 5

def log
  @log
end

Class Method Details

.instantiate_logger!Object



7
8
9
10
11
# File 'lib/graphiterb/utils/log.rb', line 7

def self.instantiate_logger!
  Graphiterb.log ||= Logger.new(Settings[:log] || STDOUT)
  Graphiterb.log.datetime_format = "%Y%m%d-%H:%M:%S "
  Graphiterb.log.level           = Logger::INFO
end