Module: FFI::Generator::Logger

Defined in:
lib/generator/logger.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.debug(message) ⇒ Object



20
21
22
# File 'lib/generator/logger.rb', line 20

def self.debug(message)
  @logger.debug(message)
end

.error(message) ⇒ Object



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

def self.error(message)
  @logger.error(message)
end

.fatal(message) ⇒ Object



8
9
10
# File 'lib/generator/logger.rb', line 8

def self.fatal(message)
  @logger.fatl(message)
end

.info(message) ⇒ Object



17
18
19
# File 'lib/generator/logger.rb', line 17

def self.info(message)
  @logger.info(message)
end

.warn(message) ⇒ Object



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

def self.warn(message)
  @logger.warn(message)
end

Instance Method Details

#set_level(level) ⇒ Object



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

def set_level(level)
  @logger.level = level
end