class Tagrity::Tlogger
Attributes
fg[W]
Public Instance Methods
debug(msg)
click to toggle source
# File lib/tagrity/tlogger.rb, line 19 def debug(msg) logger.debug(msg) end
error(msg)
click to toggle source
# File lib/tagrity/tlogger.rb, line 15 def error(msg) logger.error(msg) end
info(msg)
click to toggle source
# File lib/tagrity/tlogger.rb, line 11 def info(msg) logger.info(msg) end
logf()
click to toggle source
# File lib/tagrity/tlogger.rb, line 23 def logf # TODO this can cause duplicates, unlikely tho "#{Helper.log_dir}/#{Dir.pwd.gsub(/\//, '--')}.log" end
Private Instance Methods
logger()
click to toggle source
# File lib/tagrity/tlogger.rb, line 30 def logger @logger ||= Logger.new(@fg ? STDOUT : logf, 'weekly') end