Skip to content
/ LogGdb Public

A quick Logger Library that uses Charmbracelet Log

License

Notifications You must be signed in to change notification settings

M1ndo/LogGdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogGgb

Go Reference

LogGdb is a go package that uses charmbracelet “Log” to quickly add a logger in your project. Its also supports debugging code incase of a Fatal error.

Install && Usage

To use LogGdb

go get github.com/m1ndo/LogGdb
import loggdb "github.com/m1ndo/LogGdb"

type App struct {
	Logger *loggdb.Logger
}

func NewApp() *App {
	a := &App{Logger: &loggdb.Logger{}}
	if err := Logger.NewLogger(); err!= nil {
		panic(err)
	}
	a.Logger.Log.Info("Hello World")
	// To Disable The GDB backTrace .
	a.Logger.Gdb.Disable(true)
	// Rest of the App / Project
	return a
}

Further examples check folder examples/

License

GPLv3

About

A quick Logger Library that uses Charmbracelet Log

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published