Skip to content

evenscribe/evenscribe-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Use?

Step 1:

Step 2:

  • go install https://github.com/evenscribe/evenscribe-go
  • setup the logger
    import (
        log "github.com/evenscribe/evenscribe-go"
    )

	err := log.NewLogger(
			log.NewOptions().
				WithDefaults().
				WithResourceAttributes(map[string]string{"evnviroment": "testing"}).
				WithServiceName("logger_test").
				WithPrintToStdout(false),
		)

Step 3:

  • Just get logging.
log.Info("i got clicked...")
log.Fatal("oops... i broke")
log.InfoS("Hello world", "log-attributes", map[string]string{"hello": "world"}, "trace-id", 12333, "span-id", 11111)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages