pretty printing and write trace on disk

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>