[TCL logwriter]
it's a Time and CountLimit file log writer. just for some scene use.
:-)
{YOURNAME}YYYYMMDDhhmmss.mmm.log format (accurate to milliseconds)
fileNameRegex = regexp.MustCompile(^{YOURNAME}(\d{14}\.\d{3})\.log$)
With maxEntriesPerFile = 100000 // Maximum number of records per file
The upper limit is roughly estimated to be more than 100,000 records per millisecond.
However, there is a mutex limit when writing files.
Strengthened constraints to ensure safety when writing.
actionlogwriter/
├── writer.go // main logic
├── writer_test.go // unit test
├── config.go // config and init
└── log_file_naming.go // manager filename and timestamp