Module: MagLove::Helper::LogHelper

Included in:
Asset::Theme, Commands::Base
Defined in:
lib/maglove/helper/log_helper.rb

Instance Method Summary collapse

Instance Method Details

#debug(message) ⇒ Object



9
10
11
# File 'lib/maglove/helper/log_helper.rb', line 9

def debug(message)
  logger.send(:debug, message)
end

#error(message) ⇒ Object



13
14
15
# File 'lib/maglove/helper/log_helper.rb', line 13

def error(message)
  logger.send(:error, message)
end

#error!(message) ⇒ Object



17
18
19
20
# File 'lib/maglove/helper/log_helper.rb', line 17

def error!(message)
  logger.send(:fatal, message)
  Kernel.exit
end

#info(message) ⇒ Object



5
6
7
# File 'lib/maglove/helper/log_helper.rb', line 5

def info(message)
  logger.send(:info, message)
end

#loggerObject



22
23
24
# File 'lib/maglove/helper/log_helper.rb', line 22

def logger
  Maglove.logger
end