improve LogPart message to tell if it has corresponding data; implemented scoped messages; static log_record initialization is now thread safe; fixed timestamps in LogData messages