The following produces
The function is starting: 1 2 3 Now it is ending.
IMP_LOG(VERBOSE, "The function is starting:\n"); { IncreaseIndent ii(); IMP_LOG(VERBOSE, 1); IMP_LOG(VERBOSE, 2); IMP_LOG(VERBOSE, 3); } IMP_LOG(VERBOSE, "Now it is ending." << std::endl);
The more interesting use is that you can use it before calling a function to ensure that all the output of that function is nicely offset.