Skip to content

Igorpollo/go-custom-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Go Custom Log

Create nice custom logs with options

Preview

preview log

Usage

package  main

import  (
  log "github.com/igorpollo/go-custom-log
)

func  main()  {

  log.Info("test")
  log.Warning("test")
  log.Error("test")
  log.Success("test")
  
  //Show only if debug mode is true or env var DEBUG=true
  log.DebugMode(true)
  log.Debug("test")
   //Show time in messages
  log.ShowTime(true)

}

Running Test

Run go test -run '' to see all logs outputs

About

Simple custom logger in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages