You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
log "github.com/sirupsen/logrus""github.com/kpfaulkner/azuretablehook"
)
funcmain() {
// Azure Storage keys can either be provided in the NewHook method or it will be read from environment variables// ACCOUNT_NAME and ACCOUNT_KEYlog.AddHook( atshook.NewHook("XXXXX Azure account name XXXX", "XXXX Azure account key XXXXX", "mylogtable",
log.DebugLevel) )
log.SetLevel( log.DebugLevel)
log.WithFields(log.Fields{
"species": "cat",
"name" :"fred",
"number": 1,
}).Info("A cat was here")
}