use classmethod instead of staticmethod in log module and remove the cls parameters

use classmethod instead of staticmethod in log module and remove the cls parameters