change route and the method of processing log