Log files updations based on certain criteria of size of 3MB, with wrap of the same

VishalK_87 1 Reputation point
2020-11-24T11:37:19.437+00:00

Hi,

I am working on VC++ Application which has categories, say, Basic have requirements to create corresponding log files to get updated, with timestamps, based on criteria once size reaches 3 MB each, (wherein A & B are Products)

Basic_A_Log_1(3 MB each)

Basic_A_Log_2

Basic_A_Log_3

Basic_B_Log_1(3 MB each)

Basic_B_Log_2

Basic_B_Log_3

Overall 18 MB from Basic across A and B products,

I need to explore mechanism, to create log files (flat file system), where it restricts the creation of log files, _1 to _3 only for above criteria, _1 ..._3, once _3 reaches max size 3MB, It has to wrap to _1. Since, been new to VC++ need help in identifying the logic of creation of log files, where only last/recent 3 sets of logs are maintained.

System Details:

VC++ Development (C++ 11.0)

Windows 10 System , 64 bit

VS 2015 IDE

Thanks,

VishaK

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
{count} votes