*! newlog ver 2.0 09sep2009
*! Closes current output log -total- and opens a new output log.
*! Author: Svend Juul
program newlog
capture log close total
log using D:\stata.log , replace name(total)
end