Module: GvcsFx::LogHelper

Defined in:
lib/log_helper.rb

Instance Method Summary collapse

Instance Method Details

#log_debug(msg, tag = "") ⇒ Object



23
24
25
26
27
28
29
# File 'lib/log_helper.rb', line 23

def log_debug(msg, tag = "")
  if tag.nil? or tag.empty?
    Global.instance.logger.debug msg
  else
    Global.instance.logger.tdebug tag, msg
  end
end

#log_error(msg, tag = "") ⇒ Object



31
32
33
34
35
36
37
# File 'lib/log_helper.rb', line 31

def log_error(msg, tag = "")
  if tag.nil? or tag.empty?
    Global.instance.logger.error msg
  else
    Global.instance.logger.terror tag, msg
  end
end