Skip to content

logtor is a package that allows you to save log records with different outputs. You can make changes to the running application. You can log your operations according to log levels.

License

Notifications You must be signed in to change notification settings

Eyup-Devop/logtor

Repository files navigation

logtor (Log Creator)

logtor is a package that allows you to save log records with different outputs. You can make changes to the running application. You can log your operations according to log levels.

There are three log recorders ready-made. You can use as many loggers as you want after defining the specified functions.

Installation

go get https://github.com/Eyup-Devop/logtor

Example Usage

package main

import (
	"github.com/Eyup-Devop/logtor"
	"github.com/Eyup-Devop/logtor/creators"
	"github.com/Eyup-Devop/logtor/types"
)

func main() {
	console, _ := creators.NewBaseCreator("Console", 3, 5)

	newLogtor := logtor.NewLogtor()
	newLogtor.AddLogCreators(console)
	newLogtor.SetLogLevel(types.TRACE)
	newLogtor.LogIt(types.INFO, "Example Info")
}

About

logtor is a package that allows you to save log records with different outputs. You can make changes to the running application. You can log your operations according to log levels.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages