Module: Carnivore::Utils::Logging

Included in:
Callback, Container, Source, Source, Carnivore::Utils
Defined in:
lib/carnivore/utils/logging.rb

Overview

Logging utilities

Instance Method Summary (collapse)

Instance Method Details

- (NilClass) log(*args)

Log message

Parameters:

  • args (Object)

    argument list

Returns:

  • (NilClass)


20
21
22
23
24
25
26
27
# File 'lib/carnivore/utils/logging.rb', line 20

def log(*args)
  if(args.empty?)
    Celluloid::Logger
  else
    severity, string = args
    Celluloid::Logger.send(severity.to_sym, "#{self}: #{string}")
  end
end