2018-10-09 21:34:50 -04:00
|
|
|
class FakeLogger
|
2018-10-22 13:22:23 -04:00
|
|
|
attr_reader :warnings, :errors, :infos
|
2018-10-09 21:34:50 -04:00
|
|
|
|
|
|
|
def initialize
|
|
|
|
@warnings = []
|
|
|
|
@errors = []
|
2018-10-22 13:22:23 -04:00
|
|
|
@infos = []
|
|
|
|
end
|
|
|
|
|
|
|
|
def info(message = nil)
|
|
|
|
@infos << message
|
2018-10-09 21:34:50 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def warn(message)
|
|
|
|
@warnings << message
|
|
|
|
end
|
|
|
|
|
|
|
|
def error(message)
|
|
|
|
@errors << message
|
|
|
|
end
|
|
|
|
end
|