Add support for deferred log messages. eg. so that info can be output at the end of the process.
Add support for deferred log messages.
eg. so that info can be output at the end of the process.

Change-type: patch
Connects-to: #1273
Signed-off-by: Scott Lowe <625600233cb3bcab32268c17610882e0fdaed295@balena.io>

resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli