Skip to content

jaw0/acdiag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logger

Example

import "github.com/jaw0/acdiag"

var dl = diag.Logger("encabulator")

dl.Debug("deplenation: %+v", dpl)
dl.Verbose("thing happened")
dl.Fatal("bad things happened: %v", err)

// in/near main
diag.SetConfig(diag.Config{
        ProgName: "proggyd",
        MailTo:   "devteam@company",
        MailFrom: "daemon@company",
        Facility: "local5",
        Debug:    map[string]bool{
                "encabulator": true,
                "api":         true,
        },
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages