boost::log::dump_elements — Creates a stream manipulator that will dump elements of an array in hexadecimal form.
// In header: <boost/log/utility/manipulators/dump.hpp> template<typename T> bounded_dump_manip dump_elements(T * data, std::size_t count, std::size_t max_count);