Skip to content

[FLog] is a simple logger for simple famers. Designed for web-servers and the like, however can be used in a verity of applications.

License

Notifications You must be signed in to change notification settings

Make-Tarkov-Great-Again/flog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLog - A Simple Farmers Logger

FLog is a straightforward logger for Go that keeps things simple, just like logging should be.

Features:

  • 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."

Upcoming features

  • Log rotation
  • Log Sanitization
  • Level filtering
  • Configs for all above

Usage

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

Quick Start

Installing

go get github.com/Make-Tarkov-Great-Again/flog/v4/flog@latest

Basic Usage

// 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)

Known issues

Working on it...

Who are we, and why are we doing this?

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.

Contribution

  • 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!

About

[FLog] is a simple logger for simple famers. Designed for web-servers and the like, however can be used in a verity of applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages