more RAII and provide boost format overload of PrintTextf