deal with log