add log write class and timer