Skip to content

Minimalistic logging package with colored output

Notifications You must be signed in to change notification settings

taudelta/nanolog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NANOLOG

Simple minimalistic logging package with log level capability and colored output

Basic usage

import (
  "os"
  log "github.com/taudelta/nanolog"
)

func main() {

  log.Init(log.Options{
    Level: log.DebugLevel,
    // example of overriding default writer
    Debug: log.LoggerOptions{
      Writer: os.Stdout,
    },
  })

  log.Debug().Println("debug message")

}

Known limitations

  • colored output not supported for Non-Unix platforms

About

Minimalistic logging package with colored output

Resources

Stars

Watchers

Forks

Packages

No packages published