Class: LambdaWhenever::Logger
- Inherits:
-
Object
- Object
- LambdaWhenever::Logger
- Includes:
- Singleton
- Defined in:
- lib/lambda_whenever/logger.rb
Instance Method Summary collapse
- #fail(message) ⇒ Object
- #log(event, message) ⇒ Object
- #message(message) ⇒ Object
- #warn(message) ⇒ Object
Instance Method Details
#fail(message) ⇒ Object
7 8 9 |
# File 'lib/lambda_whenever/logger.rb', line 7 def fail() Kernel.warn "[fail] #{}" end |
#log(event, message) ⇒ Object
15 16 17 |
# File 'lib/lambda_whenever/logger.rb', line 15 def log(event, ) puts "[#{event}] #{}" end |
#message(message) ⇒ Object
19 20 21 |
# File 'lib/lambda_whenever/logger.rb', line 19 def () puts "## [message] #{}" end |
#warn(message) ⇒ Object
11 12 13 |
# File 'lib/lambda_whenever/logger.rb', line 11 def warn() Kernel.warn "[warn] #{}" end |