Added the code to syslog what data are written.

This code is commented out for future use.