logger: added log_metrics() method
logger: added log_metrics() method

The log_metrics() method of the Logger struct will serialize the current
metric state to the configured log destination.

Signed-off-by: Alexandru Agache <69826f943dd6ae0c808126caf67f094b6aee96c2@amazon.com>

firecracker-microvm/firecracker,firecracker-microvm/firecracker,firecracker-microvm/firecracker,firecracker-microvm/firecracker,firecracker-microvm/firecracker