use classmethod instead of staticmethod in log module