Class: Tagrity::Tlogger

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/tagrity/tlogger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fg=(value) ⇒ Object (writeonly)

Sets the attribute fg

Parameters:

  • value

    the value to set the attribute fg to.



9
10
11
# File 'lib/tagrity/tlogger.rb', line 9

def fg=(value)
  @fg = value
end

Instance Method Details

#debug(msg) ⇒ Object



19
20
21
# File 'lib/tagrity/tlogger.rb', line 19

def debug(msg)
  logger.debug(msg)
end

#error(msg) ⇒ Object



15
16
17
# File 'lib/tagrity/tlogger.rb', line 15

def error(msg)
  logger.error(msg)
end

#info(msg) ⇒ Object



11
12
13
# File 'lib/tagrity/tlogger.rb', line 11

def info(msg)
  logger.info(msg)
end

#logfObject



23
24
25
26
# File 'lib/tagrity/tlogger.rb', line 23

def logf
  # TODO this can cause duplicates, unlikely tho
  "#{Helper.log_dir}/#{Dir.pwd.gsub(/\//, '--')}.log"
end