FLog is a straightforward logger for Go that keeps things simple, just like logging should be.
- Multiple log levels (Error, Warn, Info, Debug, Success)
- Color-coded console output
- Concurrent file logging with buffered writes
- Automatic log file rotation
- Silent logging option
- Caller information tracking
- Formatted logging support
- Built to "Make Loggers Great Again."
- Log rotation
- Log Sanitization
- Level filtering
- Configs for all above
GO Version: 1.22 windows/amd64
! Right now this is a prototype, a proof of concept. i would not advise using this in production!
seriously its not ready lol
go get github.com/Make-Tarkov-Great-Again/flog/v4/flog@latest
// Basic logging
import "github.com/Make-Tarkov-Great-Again/flog/v4/flog"
...
flog.Init(flog.Default()) // Initialize the logger with default settings (Fastest)
flog.Info("Starting application...")
flog.Error("An error occurred:", err)
Working on it...
Make Tarkov Great Again is a project founded by a few Altered Escape developers. We felt that there shouldn't just be one option for Tarkov offline play and began development on MTGA.
- Is there a part of FLog you want to tackle?
- Some code you would like to refactor?
- Got an idea you would like to share/implement?
Feel free to create a fork, open a pull request, and request a review: We are open to any contribution!
To keep your fork up-to-date, we recommend using Pull!