Source code for door43_tools.logger

from __future__ import unicode_literals, print_function


[docs]class Door43Logger(object): def __init__(self): self.logs = { "error": [], "info": [], "warning": [], }
[docs] def log(self, type, msg): if type in self.logs: self.logs[type].append(msg)
[docs] def warning(self, msg): self.log("warning", msg)
[docs] def error(self, msg): self.log("error", msg)
[docs] def info(self, msg): self.log("info", msg)