Class: Picky::Loggers::Concise
Overview
The verbose logger outputs little information.
Instance Attribute Summary
Attributes inherited from Silent
#output
Instance Method Summary
collapse
Methods inherited from Silent
#adapt, #flush, #logger_output?
Constructor Details
#initialize(*args) ⇒ Concise
Returns a new instance of Concise.
9
10
11
|
# File 'lib/picky/loggers/concise.rb', line 9
def initialize *args
super *args
end
|
Instance Method Details
#adapt_for_io ⇒ Object
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# File 'lib/picky/loggers/concise.rb', line 41
def adapt_for_io
super
def info text
output.write text
end
def warn text
output.puts text
flush
end
def write message
output.write message
end
end
|
#adapt_for_logger ⇒ Object
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/picky/loggers/concise.rb', line 29
def adapt_for_logger
super
def info text
output.info text
end
def warn text
output.warn text
end
def write message
output << message
end
end
|
17
18
19
|
# File 'lib/picky/loggers/concise.rb', line 17
def dump(*)
progress 'D'
end
|
#info(text) ⇒ Object
31
32
33
|
# File 'lib/picky/loggers/concise.rb', line 31
def info text
output.info text
end
|
21
22
23
|
# File 'lib/picky/loggers/concise.rb', line 21
def load(*)
progress
end
|
#progress(type = '.') ⇒ Object
25
26
27
|
# File 'lib/picky/loggers/concise.rb', line 25
def progress type = '.'
write type
end
|
13
14
15
|
# File 'lib/picky/loggers/concise.rb', line 13
def tokenize(*)
progress 'T'
end
|
#warn(text) ⇒ Object
34
35
36
|
# File 'lib/picky/loggers/concise.rb', line 34
def warn text
output.warn text
end
|
#write(message) ⇒ Object
37
38
39
|
# File 'lib/picky/loggers/concise.rb', line 37
def write message
output << message
end
|