Class: Bio::Log::LoggerPlus

Inherits:
Logger
  • Object
show all
Includes:
LoggerSubLevels
Defined in:
lib/bio/log/logger.rb

Overview

Derived from the Log4r Logger class

Instance Attribute Summary

Attributes included from LoggerSubLevels

#sub_level

Instance Method Summary collapse

Methods included from LoggerSubLevels

#debug1, #debug2, #debug3, #debug4, #debug5, #debug6, #debug7, #debug8, #debug9, #error1, #error2, #error3, #error4, #error5, #error6, #error7, #error8, #error9, #fatal1, #fatal2, #fatal3, #fatal4, #fatal5, #fatal6, #fatal7, #fatal8, #fatal9, #info1, #info2, #info3, #info4, #info5, #info6, #info7, #info8, #info9, #warn1, #warn2, #warn3, #warn4, #warn5, #warn6, #warn7, #warn8, #warn9

Instance Method Details

#debug_(msg, options = {}) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/bio/log/logger.rb', line 16

def debug_ msg, options = {}
  if options[:act]
    options[:act].debug(self,msg)
  else
    debug msg
  end
end

#error_(msg, options = {}) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/bio/log/logger.rb', line 40

def error_ msg, options = {}
  if options[:act]
    options[:act].error(self,msg)
  else
    error msg
  end
end

#fatal_(msg, options = {}) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/bio/log/logger.rb', line 48

def fatal_ msg, options = {}
  if options[:act]
    options[:act].fatal(self,msg)
  else
    fatal msg
  end
end

#info_(msg, options = {}) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/bio/log/logger.rb', line 24

def info_ msg, options = {}
  if options[:act]
    options[:act].info(self,msg)
  else
    info msg
  end
end

#warn_(msg, options = {}) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/bio/log/logger.rb', line 32

def warn_ msg, options = {}
  if options[:act]
    options[:act].warn(self,msg)
  else
    warn msg
  end
end