Module: LogjamAgent::Sinatra::Helpers

Defined in:
lib/logjam_agent/sinatra.rb

Instance Method Summary collapse

Instance Method Details

#action_name(action_name) ⇒ Object



22
23
24
# File 'lib/logjam_agent/sinatra.rb', line 22

def action_name(action_name)
  LogjamAgent.request.fields[:action] = action_name
end

#loggerObject



26
27
28
# File 'lib/logjam_agent/sinatra.rb', line 26

def logger
  LogjamAgent.logger
end