Skip to content

kabuke/TCLlogwriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

README

[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

About

time and count limit logwriter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages