removing log from document