This can be about as comlicated as you want to make it :)
You can do a perl script. You can do a simpler proc:
proc util_logroll {} {
exec kill -HUP [ns_info pid]
}
ns_schedule_daily 0 0 util_logroll
but the easiest way is to use the builtin ns_logroll. :)
incidently, according to the docs the only parameters affecting the "global" log are
LogMaxBackup
10
The maximum number of server log backup files.
LogRoll
on
Boolean value. If set to on, the server log file will be rolled on a SIGHUP.
pretty simplistic I'm afraid.