modify logging file method