Page 1 of 1

tf logging

PostPosted: Tue Dec 11, 2012 8:53 pm
by raincrab
autologging with log rotation with date in filename

Code: Select all
/def logger = /log off %; \
   /log SlothMUD.$[ftime("%F")].log %; \
   /at 00:01 /logger

/hook CONNECT = /logger %; /set connected 1
/hook CONFAIL|ICONFAIL * = /log off %; /set connected 0