Class: Bio::Log::LoggerPlus

Inherits:
Logger
  • Object
show all
Includes:
LoggerFilter, 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 LoggerFilter

#filter, #reset_filter

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

#[](name) ⇒ Object



65
66
67
# File 'lib/bio/log/logger.rb', line 65

def [] name
  super
end

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



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

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

#default_levelObject



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

def default_level
  # Log4r::Logger::DEBUG
  6
end

#default_sub_levelObject



22
23
# File 'lib/bio/log/logger.rb', line 22

def default_sub_level
end

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



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

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

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



57
58
59
60
61
62
63
# File 'lib/bio/log/logger.rb', line 57

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

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



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

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

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



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

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