Class: LambdaWhenever::Logger

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/lambda_whenever/logger.rb

Instance Method Summary collapse

Instance Method Details

#fail(message) ⇒ Object



7
8
9
# File 'lib/lambda_whenever/logger.rb', line 7

def fail(message)
  Kernel.warn "[fail] #{message}"
end

#log(event, message) ⇒ Object



15
16
17
# File 'lib/lambda_whenever/logger.rb', line 15

def log(event, message)
  puts "[#{event}] #{message}"
end

#message(message) ⇒ Object



19
20
21
# File 'lib/lambda_whenever/logger.rb', line 19

def message(message)
  puts "## [message] #{message}"
end

#warn(message) ⇒ Object



11
12
13
# File 'lib/lambda_whenever/logger.rb', line 11

def warn(message)
  Kernel.warn "[warn] #{message}"
end