travis-ci
935 of 935 new or added lines in 12 files covered. (100.0%)
1110 of 1142 relevant lines covered (97.2%)
16602.03 hits per line
|
module Ridgepole |
36✔ |
|
class Logger < ::Logger |
36✔ |
|
include Singleton
|
36✔ |
|
cattr_accessor :verbose
|
36✔ |
5 |
|
|
|
def initialize |
36✔ |
|
super($stdout) |
36✔ |
8 |
|
|
|
self.formatter = proc do |_severity, _datetime, _progname, msg| |
36✔ |
|
"#{msg}\n"
|
× |
11 |
end
|
|
12 |
|
|
|
self.level = Logger::INFO |
36✔ |
14 |
end
|
|
15 |
|
|
|
def verbose_info(msg) |
36✔ |
|
info(msg) if verbose
|
92,024✔ |
18 |
end
|
|
19 |
|
|
|
def debug=(value) |
36✔ |
|
self.level = value ? Logger::DEBUG : Logger::INFO |
× |
22 |
end
|
|
23 |
end
|
|
24 |
end
|