add logging facility

timestamped messages to stderr or to designated file