Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

golog

Simply go logging library

Example

package main

import "github.com/jayi/golog"

func main() {
    // default level is trace
    golog.SetLevel(golog.DebugLevel)
    
    golog.Tracef("%s message\n", "trace")
    golog.Debug("debug message\n")
    golog.Infoln("info message\n")
}

output:

2017/05/03 15:16:37 main.go:10: [DEBUG] debug message
2017/05/03 15:16:37 main.go:11: [INFO] info message

Levels

Currently supported levels are

  • TRACE
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • PANIC

About

Simply go logging library

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages