Skip to content

salman0ansari/bulog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bulog

simple logger with golang

example

func TestNewLog(t *testing.T) {
	log := New(os.Stdout)

	log.Info().Msg("hello world")
	log.Debug().Msg("hello world")
	log.Warn().Msg("hello world")
	log.Error().Msg("hello world")
}

output

{"level":"info","message":"hello world"}
{"level":"debug","message":"hello world"}
{"level":"warn","message":"hello world"}
{"level":"error","message":"hello world"}

About

simple logger with golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%