Format output. Add runnable example of invasive logging