Class: Blabbermouth::Bystanders::Rails
- Inherits:
-
Base
- Object
- Base
- Blabbermouth::Bystanders::Rails
- Includes:
- DynamicEvents, Formatter
- Defined in:
- lib/blabbermouth/rails/bystander.rb
Instance Method Summary collapse
- #count(key, total, *args) ⇒ Object
- #critical(key, e, *args) ⇒ Object
- #debug(key, e = nil, *args) ⇒ Object
- #error(key, e, *args) ⇒ Object
- #increment(key, by = 1, *args) ⇒ Object
- #info(key, msg = nil, *args) ⇒ Object
- #relay(meth, key, *args) ⇒ Object
- #time(key, duration, *args) ⇒ Object
- #warning(key, e = nil, *args) ⇒ Object
Instance Method Details
#count(key, total, *args) ⇒ Object
31 32 33 |
# File 'lib/blabbermouth/rails/bystander.rb', line 31 def count(key, total, *args) relay :count, key, total, *args end |
#critical(key, e, *args) ⇒ Object
11 12 13 |
# File 'lib/blabbermouth/rails/bystander.rb', line 11 def critical(key, e, *args) relay :critical, key, e, *args end |
#debug(key, e = nil, *args) ⇒ Object
19 20 21 |
# File 'lib/blabbermouth/rails/bystander.rb', line 19 def debug(key, e=nil, *args) relay :debug, key, e, *args end |
#error(key, e, *args) ⇒ Object
7 8 9 |
# File 'lib/blabbermouth/rails/bystander.rb', line 7 def error(key, e, *args) relay :error, key, e, *args end |
#increment(key, by = 1, *args) ⇒ Object
27 28 29 |
# File 'lib/blabbermouth/rails/bystander.rb', line 27 def increment(key, by=1, *args) relay :increment, key, by, *args end |
#info(key, msg = nil, *args) ⇒ Object
23 24 25 |
# File 'lib/blabbermouth/rails/bystander.rb', line 23 def info(key, msg=nil, *args) relay :info, key, msg, *args end |
#relay(meth, key, *args) ⇒ Object
39 40 41 42 |
# File 'lib/blabbermouth/rails/bystander.rb', line 39 def relay(meth, key, *args) data, opts, args = parse_args(*args) log meth, key, args.first, data end |
#time(key, duration, *args) ⇒ Object
35 36 37 |
# File 'lib/blabbermouth/rails/bystander.rb', line 35 def time(key, duration, *args) relay :time, key, duration, *args end |
#warning(key, e = nil, *args) ⇒ Object
15 16 17 |
# File 'lib/blabbermouth/rails/bystander.rb', line 15 def warning(key, e=nil, *args) relay :warning, key, e, *args end |