Module: LeadZeppelin::APNS::Logger

Defined in:
lib/lead_zeppelin/apns/logger.rb

Class Method Summary collapse

Class Method Details

.debug(string) ⇒ Object



11
12
13
# File 'lib/lead_zeppelin/apns/logger.rb', line 11

def debug(string)
  LeadZeppelin.logger.debug(string) if LeadZeppelin.logger
end

.error(string) ⇒ Object



23
24
25
# File 'lib/lead_zeppelin/apns/logger.rb', line 23

def error(string)
  LeadZeppelin.logger.error(string) if LeadZeppelin.logger
end

.info(string) ⇒ Object



15
16
17
# File 'lib/lead_zeppelin/apns/logger.rb', line 15

def info(string)
  LeadZeppelin.logger.info(string) if LeadZeppelin.logger
end

.thread(string) ⇒ Object



7
8
9
# File 'lib/lead_zeppelin/apns/logger.rb', line 7

def thread(string)
  LeadZeppelin.thread_logger.print string.upcase if LeadZeppelin.thread_logger
end

.warn(string) ⇒ Object



19
20
21
# File 'lib/lead_zeppelin/apns/logger.rb', line 19

def warn(string)
  LeadZeppelin.logger.warn(string) if LeadZeppelin.logger
end