Hi,
The answer to your question is unfortunatly no.
As far as a keepalive script goes, you cannot log to a file, however, you can change the logging of the CSS to reflect keepalive level logging which may help
logging subsystem keepalive level debug-7
Regards
Pete Knoops
Cisco Systems