You got this error because different number of outliers are removed from each column and so columns can not be put together in one data frame.
If you want to replace outliers with NA, one solution would be
out.rem<-function(x) {
x[which(x==outlier(x))]=NA
x
}
apply(datalog,2,out.rem)
To remove entire rows containing outlier values, you could add additional line to @agstudy solution
ll <- apply(datalog,2,function(x) which(x == outlier(x)))
new.datalog <- datalog[-unique(unlist(ll)),]