Module: Bio::Log::LoggerSubLevels

Included in:
LoggerPlus
Defined in:
lib/bio/log/loggersublevels.rb

Overview

Support for numbered sub-levels. We could have used method_missing, or something similar, but this rather clean.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sub_levelObject

Returns the value of attribute sub_level.



9
10
11
# File 'lib/bio/log/loggersublevels.rb', line 9

def sub_level
  @sub_level
end

Instance Method Details

#debug1(s) ⇒ Object



11
12
13
14
# File 'lib/bio/log/loggersublevels.rb', line 11

def debug1(s)
  return nil if @use_filter and !@use_filter.call(DEBUG,1,s)
  debug(s) if !sub_level or sub_level >= 1
end

#debug2(s) ⇒ Object



15
16
17
18
# File 'lib/bio/log/loggersublevels.rb', line 15

def debug2(s)
  return nil if @use_filter and !@use_filter.call(DEBUG,2,s)
  debug(s) if !sub_level or sub_level >= 2
end

#debug3(s) ⇒ Object



19
20
21
22
# File 'lib/bio/log/loggersublevels.rb', line 19

def debug3(s)
  return nil if @use_filter and !@use_filter.call(DEBUG,3,s)
  debug(s) if !sub_level or sub_level >= 3
end

#debug4(s) ⇒ Object



23
24
25
26
# File 'lib/bio/log/loggersublevels.rb', line 23

def debug4(s)
  return nil if @use_filter and !@use_filter.call(DEBUG,4,s)
  debug(s) if !sub_level or sub_level >= 4
end

#debug5(s) ⇒ Object



27
28
29
30
# File 'lib/bio/log/loggersublevels.rb', line 27

def debug5(s)
  return nil if @use_filter and !@use_filter.call(DEBUG,5,s)
  debug(s) if !sub_level or sub_level >= 5
end

#debug6(s) ⇒ Object



31
32
33
34
# File 'lib/bio/log/loggersublevels.rb', line 31

def debug6(s)
  return nil if @use_filter and !@use_filter.call(DEBUG,6,s)
  debug(s) if !sub_level or sub_level >= 6
end

#debug7(s) ⇒ Object



35
36
37
38
# File 'lib/bio/log/loggersublevels.rb', line 35

def debug7(s)
  return nil if @use_filter and !@use_filter.call(DEBUG,7,s)
  debug(s) if !sub_level or sub_level >= 7
end

#debug8(s) ⇒ Object



39
40
41
42
# File 'lib/bio/log/loggersublevels.rb', line 39

def debug8(s)
  return nil if @use_filter and !@use_filter.call(DEBUG,8,s)
  debug(s) if !sub_level or sub_level >= 8
end

#debug9(s) ⇒ Object



43
44
45
46
# File 'lib/bio/log/loggersublevels.rb', line 43

def debug9(s)
  return nil if @use_filter and !@use_filter.call(DEBUG,9,s)
  debug(s) if !sub_level or sub_level >= 9
end

#error1(s) ⇒ Object



122
123
124
125
# File 'lib/bio/log/loggersublevels.rb', line 122

def error1(s)
  return nil if @use_filter and !@use_filter.call(ERROR,1,s)
  error(s) if !sub_level or sub_level >= 1
end

#error2(s) ⇒ Object



126
127
128
129
# File 'lib/bio/log/loggersublevels.rb', line 126

def error2(s)
  return nil if @use_filter and !@use_filter.call(ERROR,2,s)
  error(s) if !sub_level or sub_level >= 2
end

#error3(s) ⇒ Object



130
131
132
133
# File 'lib/bio/log/loggersublevels.rb', line 130

def error3(s)
  return nil if @use_filter and !@use_filter.call(ERROR,3,s)
  error(s) if !sub_level or sub_level >= 3
end

#error4(s) ⇒ Object



134
135
136
137
# File 'lib/bio/log/loggersublevels.rb', line 134

def error4(s)
  return nil if @use_filter and !@use_filter.call(ERROR,4,s)
  error(s) if !sub_level or sub_level >= 4
end

#error5(s) ⇒ Object



138
139
140
141
# File 'lib/bio/log/loggersublevels.rb', line 138

def error5(s)
  return nil if @use_filter and !@use_filter.call(ERROR,5,s)
  error(s) if !sub_level or sub_level >= 5
end

#error6(s) ⇒ Object



142
143
144
145
# File 'lib/bio/log/loggersublevels.rb', line 142

def error6(s)
  return nil if @use_filter and !@use_filter.call(ERROR,6,s)
  error(s) if !sub_level or sub_level >= 6
end

#error7(s) ⇒ Object



146
147
148
149
# File 'lib/bio/log/loggersublevels.rb', line 146

def error7(s)
  return nil if @use_filter and !@use_filter.call(ERROR,7,s)
  error(s) if !sub_level or sub_level >= 7
end

#error8(s) ⇒ Object



150
151
152
153
# File 'lib/bio/log/loggersublevels.rb', line 150

def error8(s)
  return nil if @use_filter and !@use_filter.call(ERROR,8,s)
  error(s) if !sub_level or sub_level >= 8
end

#error9(s) ⇒ Object



154
155
156
157
# File 'lib/bio/log/loggersublevels.rb', line 154

def error9(s)
  return nil if @use_filter and !@use_filter.call(ERROR,9,s)
  error(s) if !sub_level or sub_level >= 9
end

#fatal1(s) ⇒ Object



159
160
161
162
# File 'lib/bio/log/loggersublevels.rb', line 159

def fatal1(s)
  return nil if @use_filter and !@use_filter.call(FATAL,1,s)
  fatal(s) if !sub_level or sub_level >= 1
end

#fatal2(s) ⇒ Object



163
164
165
166
# File 'lib/bio/log/loggersublevels.rb', line 163

def fatal2(s)
  return nil if @use_filter and !@use_filter.call(FATAL,2,s)
  fatal(s) if !sub_level or sub_level >= 2
end

#fatal3(s) ⇒ Object



167
168
169
170
# File 'lib/bio/log/loggersublevels.rb', line 167

def fatal3(s)
  return nil if @use_filter and !@use_filter.call(FATAL,3,s)
  fatal(s) if !sub_level or sub_level >= 3
end

#fatal4(s) ⇒ Object



171
172
173
174
# File 'lib/bio/log/loggersublevels.rb', line 171

def fatal4(s)
  return nil if @use_filter and !@use_filter.call(FATAL,4,s)
  fatal(s) if !sub_level or sub_level >= 4
end

#fatal5(s) ⇒ Object



175
176
177
178
# File 'lib/bio/log/loggersublevels.rb', line 175

def fatal5(s)
  return nil if @use_filter and !@use_filter.call(FATAL,5,s)
  fatal(s) if !sub_level or sub_level >= 5
end

#fatal6(s) ⇒ Object



179
180
181
182
# File 'lib/bio/log/loggersublevels.rb', line 179

def fatal6(s)
  return nil if @use_filter and !@use_filter.call(FATAL,6,s)
  fatal(s) if !sub_level or sub_level >= 6
end

#fatal7(s) ⇒ Object



183
184
185
186
# File 'lib/bio/log/loggersublevels.rb', line 183

def fatal7(s)
  return nil if @use_filter and !@use_filter.call(FATAL,7,s)
  fatal(s) if !sub_level or sub_level >= 7
end

#fatal8(s) ⇒ Object



187
188
189
190
# File 'lib/bio/log/loggersublevels.rb', line 187

def fatal8(s)
  return nil if @use_filter and !@use_filter.call(FATAL,8,s)
  fatal(s) if !sub_level or sub_level >= 8
end

#fatal9(s) ⇒ Object



191
192
193
194
# File 'lib/bio/log/loggersublevels.rb', line 191

def fatal9(s)
  return nil if @use_filter and !@use_filter.call(FATAL,9,s)
  fatal(s) if !sub_level or sub_level >= 9
end

#info1(s) ⇒ Object



48
49
50
51
# File 'lib/bio/log/loggersublevels.rb', line 48

def info1(s)
  return nil if @use_filter and !@use_filter.call(INFO,1,s)
  info(s) if !sub_level or sub_level >= 1
end

#info2(s) ⇒ Object



52
53
54
55
# File 'lib/bio/log/loggersublevels.rb', line 52

def info2(s)
  return nil if @use_filter and !@use_filter.call(INFO,2,s)
  info(s) if !sub_level or sub_level >= 2
end

#info3(s) ⇒ Object



56
57
58
59
# File 'lib/bio/log/loggersublevels.rb', line 56

def info3(s)
  return nil if @use_filter and !@use_filter.call(INFO,3,s)
  info(s) if !sub_level or sub_level >= 3
end

#info4(s) ⇒ Object



60
61
62
63
# File 'lib/bio/log/loggersublevels.rb', line 60

def info4(s)
  return nil if @use_filter and !@use_filter.call(INFO,4,s)
  info(s) if !sub_level or sub_level >= 4
end

#info5(s) ⇒ Object



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

def info5(s)
  return nil if @use_filter and !@use_filter.call(INFO,5,s)
  info(s) if !sub_level or sub_level >= 5
end

#info6(s) ⇒ Object



68
69
70
71
# File 'lib/bio/log/loggersublevels.rb', line 68

def info6(s)
  return nil if @use_filter and !@use_filter.call(INFO,6,s)
  info(s) if !sub_level or sub_level >= 6
end

#info7(s) ⇒ Object



72
73
74
75
# File 'lib/bio/log/loggersublevels.rb', line 72

def info7(s)
  return nil if @use_filter and !@use_filter.call(INFO,7,s)
  info(s) if !sub_level or sub_level >= 7
end

#info8(s) ⇒ Object



76
77
78
79
# File 'lib/bio/log/loggersublevels.rb', line 76

def info8(s)
  return nil if @use_filter and !@use_filter.call(INFO,8,s)
  info(s) if !sub_level or sub_level >= 8
end

#info9(s) ⇒ Object



80
81
82
83
# File 'lib/bio/log/loggersublevels.rb', line 80

def info9(s)
  return nil if @use_filter and !@use_filter.call(INFO,9,s)
  info(s) if !sub_level or sub_level >= 9
end

#warn1(s) ⇒ Object



85
86
87
88
# File 'lib/bio/log/loggersublevels.rb', line 85

def warn1(s)
  return nil if @use_filter and !@use_filter.call(WARN,1,s)
  warn(s) if !sub_level or sub_level >= 1
end

#warn2(s) ⇒ Object



89
90
91
92
# File 'lib/bio/log/loggersublevels.rb', line 89

def warn2(s)
  return nil if @use_filter and !@use_filter.call(WARN,2,s)
  warn(s) if !sub_level or sub_level >= 2
end

#warn3(s) ⇒ Object



93
94
95
96
# File 'lib/bio/log/loggersublevels.rb', line 93

def warn3(s)
  return nil if @use_filter and !@use_filter.call(WARN,3,s)
  warn(s) if !sub_level or sub_level >= 3
end

#warn4(s) ⇒ Object



97
98
99
100
# File 'lib/bio/log/loggersublevels.rb', line 97

def warn4(s)
  return nil if @use_filter and !@use_filter.call(WARN,4,s)
  warn(s) if !sub_level or sub_level >= 4
end

#warn5(s) ⇒ Object



101
102
103
104
# File 'lib/bio/log/loggersublevels.rb', line 101

def warn5(s)
  return nil if @use_filter and !@use_filter.call(WARN,5,s)
  warn(s) if !sub_level or sub_level >= 5
end

#warn6(s) ⇒ Object



105
106
107
108
# File 'lib/bio/log/loggersublevels.rb', line 105

def warn6(s)
  return nil if @use_filter and !@use_filter.call(WARN,6,s)
  warn(s) if !sub_level or sub_level >= 6
end

#warn7(s) ⇒ Object



109
110
111
112
# File 'lib/bio/log/loggersublevels.rb', line 109

def warn7(s)
  return nil if @use_filter and !@use_filter.call(WARN,7,s)
  warn(s) if !sub_level or sub_level >= 7
end

#warn8(s) ⇒ Object



113
114
115
116
# File 'lib/bio/log/loggersublevels.rb', line 113

def warn8(s)
  return nil if @use_filter and !@use_filter.call(WARN,8,s)
  warn(s) if !sub_level or sub_level >= 8
end

#warn9(s) ⇒ Object



117
118
119
120
# File 'lib/bio/log/loggersublevels.rb', line 117

def warn9(s)
  return nil if @use_filter and !@use_filter.call(WARN,9,s)
  warn(s) if !sub_level or sub_level >= 9
end