Method: SentinelApi::Notifier.log

Defined in:
lib/sentinel_api/notifier.rb

.log(level = nil, args) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/sentinel_api/notifier.rb', line 21

def log(level = nil, args)
  level ||= configuration.level
  project_name ||= configuration.project_name
  message, info, tags = extract_arguments(args)

  SentinelApi::Client.send_to_server({ level: level, message: message, info: info, tags: tags, project_name: project_name })
end