Added wip log rotate feature

- Added log rotate function interface
- Added darwin amd64 support in make file (Intel Macs)
- Added log summary and error API
This commit is contained in:
Toby Chui
2025-08-31 22:22:45 +08:00
parent d9fd38260f
commit c3afdefe45
6 changed files with 503 additions and 400 deletions

View File

@@ -18,9 +18,10 @@ import (
*/
type Logger struct {
Prefix string //Prefix for log files
LogFolder string //Folder to store the log file
CurrentLogFile string //Current writing filename
Prefix string //Prefix for log files
LogFolder string //Folder to store the log file
CurrentLogFile string //Current writing filename
RotateOption RotateOption //Options for log rotation, see rotate.go
logger *log.Logger
file *os.File
}