Class: Devup::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/devup/logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(device: STDOUT, level: :info) ⇒ Logger

Returns a new instance of Logger.



5
6
7
8
# File 'lib/devup/logger.rb', line 5

def initialize(device: STDOUT, level: :info)
  @level = level
  @device = device
end

Instance Method Details

#debug(msg) ⇒ Object



10
11
12
# File 'lib/devup/logger.rb', line 10

def debug(msg)
  logger.debug msg
end

#error(msg) ⇒ Object



18
19
20
# File 'lib/devup/logger.rb', line 18

def error(msg)
  logger.error msg
end

#info(msg) ⇒ Object



14
15
16
# File 'lib/devup/logger.rb', line 14

def info(msg)
  logger.info msg
end