created logger

Created logger and fixed report fatal error assigning non-node object a
table row.