Skip to content

AdvLoggerPkg - DecodeUefiLog

DecodeUefiLog is used to get the Uefi debug log that is stored by UEFI in system memory.

About

Advanced Logger stores the debug log file in memory, with additional data for each line. At runtime, if the Advanced Logger is enabled, this in memory log is available through the UEFI Variable store. As the log in memory has additional metadata and alignment structure, DecodeUefiLog parses the on memory UefiLog to a text stream and writes the decoded log to a local file.

Usage

Copy the two files, DecideUefiLog.py and UefiVariablesSupportLib.py, to the system that has the Advanced Logger enabled.

The simplest case:

DecodeUefiLog -o NewLogFile.txt

Decode lines after a starting line number and send them to the file specified by -o:

  DecodeUefiLog -s 5000 -o NewLogFile.txt

Copy the raw in memory log to a binary file.

  DecodeUfieLog -r RawLog.bin

Decode a raw file into a text file:

  DecodeUefiLog -l RawLog.bin -o NewLogFIle.txt

Copyright (C) Microsoft Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent