Skip to content

fajarardiyanto/flt-go-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Module Logger

Logger modules Faltar Logger use Logger v1.8.1 as logging backend.

Installation

go get github.com/fajarardiyanto/flt-go-logger
Upgrading to the latest version
go get -u github.com/fajarardiyanto/flt-go-logger
Upgrade or downgrade with tag version if available
go get -u github.com/fajarardiyanto/flt-go-logger@v1.0.0

Usage

package main

import (
	"github.com/fajarardiyanto/flt-go-logger/lib"
)

type Message struct {
	msg string
}

func main() {
	logger := lib.NewLib()
	logger.Init("Testing modules")
	logger.Debug("Lorem Ipsum is simply dummy text of the printing and typesetting %s.", "industry")
	logger.Info(map[string]interface{}{
		"name": "Flt Go Logger",
	})
}

Run Example

make run

Tips

Maybe it would be better to do some basic code scanning before pushing to the repository.

# for *.nix users just run gosec.sh
# curl is required
# more information https://github.com/securego/gosec
make scan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published