Support logging metadata to an additional file.

Preliminary support added for power-up and config settings.
Also fix for improper const variable.