Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 555 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 555 Bytes

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