Code:

$LogfileName = "xpto" + @DATE + ".log"



If you're looking for script to create/write a logfile check the UDF forum for several usable functions.