The AdvanceLoggerPackage provide in memory logging for UEFI post logging, and, if equipped, SMM and Runtime mechanisms to add to the in memory log. There is also a facility to extract the log at Runtime.
Documentation can be found in the Docs directory