change logging format
all  loggins should have  method of write()