6. Segmented Log
Let's learn about segmented log and its usage.
A single log can become difficult to manage. As the file grows, it can also become a performance bottleneck, especially when it is read at the startup. Older logs need to be cleaned up periodically or, in some cases, merged. Doing these operations on a single large file is difficult to implement.
Break down the log into smaller segments for easier management.
A single log file is split into multiple parts, such that the log data is divided into equal-sized log segments.