Class: Kredis::LogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/kredis/log_subscriber.rb

Instance Method Summary collapse

Instance Method Details

#meta(event) ⇒ Object



14
15
16
# File 'lib/kredis/log_subscriber.rb', line 14

def meta(event)
  info formatted_in(MAGENTA, event)
end

#migration(event) ⇒ Object



10
11
12
# File 'lib/kredis/log_subscriber.rb', line 10

def migration(event)
  debug formatted_in(YELLOW, event, type: "Migration")
end

#proxy(event) ⇒ Object



6
7
8
# File 'lib/kredis/log_subscriber.rb', line 6

def proxy(event)
  debug formatted_in(YELLOW, event, type: "Proxy")
end