Class: Happening::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/happening/log.rb

Constant Summary collapse

@@logger =
Logger.new(STDOUT)

Class Method Summary collapse

Class Method Details

.debug(msg) ⇒ Object



23
24
25
# File 'lib/happening/log.rb', line 23

def self.debug(msg)
  logger.debug("Happening: #{msg}")
end

.error(msg) ⇒ Object



35
36
37
# File 'lib/happening/log.rb', line 35

def self.error(msg)
  logger.debug("Happening: #{msg}")
end

.info(msg) ⇒ Object



27
28
29
# File 'lib/happening/log.rb', line 27

def self.info(msg)
  logger.debug("Happening: #{msg}")
end

.levelObject



19
20
21
# File 'lib/happening/log.rb', line 19

def self.level
  logger.level
end

.level=(lev) ⇒ Object



15
16
17
# File 'lib/happening/log.rb', line 15

def self.level=(lev)
  logger.level = lev
end

.loggerObject



11
12
13
# File 'lib/happening/log.rb', line 11

def self.logger
  @@logger
end

.logger=(log) ⇒ Object



7
8
9
# File 'lib/happening/log.rb', line 7

def self.logger=(log)
  @@logger = log
end

.warn(msg) ⇒ Object



31
32
33
# File 'lib/happening/log.rb', line 31

def self.warn(msg)
  logger.debug("Happening: #{msg}")
end