Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 846 Bytes

README.org

File metadata and controls

33 lines (29 loc) · 846 Bytes

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