module Bio::GFFbrowser::Helpers::Logger
Public Instance Methods
debug(str, id='')
click to toggle source
# File lib/bio/output/gfflogger.rb, line 10 def debug str, id='' log = LoggerPlus['bio-gff3'] log.debug str+" <#{id}>" end
error(str, id='')
click to toggle source
# File lib/bio/output/gfflogger.rb, line 25 def error str, id='' log = LoggerPlus['bio-gff3'] log.error_(str+" <#{id}>",:act => FailOnError.new) end
info(str, id='')
click to toggle source
# File lib/bio/output/gfflogger.rb, line 15 def info str, id='' log = LoggerPlus['bio-gff3'] log.info str+" <#{id}>" end
log_sys_info(msg)
click to toggle source
# File lib/bio/output/gfflogger.rb, line 31 def log_sys_info msg log = LoggerPlus['bio-gff3'] rmem = `ps -o rss= -p #{Process.pid}`.to_i vmem = `ps -o vsz= -p #{Process.pid}`.to_i if rmem or vmem log.info7 "Memory used #{msg} RAM #{rmem/1024}M, VMEM #{vmem/1024}M" end end
warn(str, id='')
click to toggle source
# File lib/bio/output/gfflogger.rb, line 20 def warn str, id='' log = LoggerPlus['bio-gff3'] log.warn str+" <#{id}>" end