pub fn log_metadata()
Log the metadata for a statemap, this should be called as soon as the system starts up.