"""
359
easy
logger rate limiter
"""


class Logger:

    def __init__(self):
        self.logs = {}

    def shouldPrintMessage(self, timestamp: int, message: str) -> bool:

        if message not in self.logs or timestamp >= self.logs[message] + 10:
            self.logs[message] = timestamp
            return True
        else:
            return False


