Script to log a console command.

Hey i just want a small script that logs every “ulx psay” with time and saves it in a text file in data/ I’ve been fiddling around and i know how to return the command and args but im not sure how to save them into a file. Can someone please help.

http://wiki.garrysmod.com/?title=File.Write =)