Categorygithub.com/gerardoCD/log-http-go
modulepackage
0.0.0-20201209055226-20db09f532e0
Repository: https://github.com/gerardocd/log-http-go.git
Documentation: pkg.go.dev

# README

Log-Http

This is a powerful logger for services.

Installation

Install and start the server.

$ go run main.go
$ go get github.com/gerardoCD/log-http-go 

Import in your project


import (
	lgs "github.com/gerardoCD/log-http-go"
)

Features!

  • Mark init service
  • Mark end service
  • Reponse Services
  • Reponde middleware service
  • Log Info
  • Log Error

Examples!



func main() {
	lgs.Begin("Name Service")
	lgs.Request("{\"hola\":4}")
	lgs.ReponseService(201,"{\"hola\":4}", "http://app/getElement", "Get Element")
	lgs.Reponse(200,"{\"hola\":4}")
	lgs.Info("Log random")
	lgs.Error("Error Fatal")
}
  

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author