diff --git a/Common/modules/IO.h b/Common/modules/IO.h index 3db3953..cbd505f 100644 --- a/Common/modules/IO.h +++ b/Common/modules/IO.h @@ -187,13 +187,16 @@ namespace LXC::Util Internal::WriteImpl(std::cout, "[LXC] \"", containerName, "\":\n{"); // Iterates over each of the items in the container and prints them // + unsigned counter = 0; for (const auto& item : container) { if constexpr (Internal::HasLogStrFunc) - Internal::WriteImpl(std::cout, '\t', item.LogStr()); + Internal::WriteImpl(std::cout, '\t', std::setw(3), std::left, counter, "| ", item.LogStr()); else - Internal::WriteImpl(std::cout, '\t', item); + Internal::WriteImpl(std::cout, '\t', std::setw(3), std::left, counter, "| ", item); + + counter++; } // Prints the ending bracket // @@ -256,13 +259,16 @@ namespace LXC::Util Internal::WriteImpl(log, "[LXC] \"", containerName, "\":\n{"); // Iterates over each of the items in the container and prints them // + unsigned counter = 0; for (const auto& item : container) { if constexpr (Internal::HasLogStrFunc) - Internal::WriteImpl(log, '\t', item.LogStr()); + Internal::WriteImpl(log, '\t', std::setw(3), std::left, counter, "| ", item.LogStr()); else - Internal::WriteImpl(log, '\t', item); + Internal::WriteImpl(log, '\t', std::setw(3), std::left, counter, "| ", item); + + counter++; } // Prints the ending bracket //