forked from TrueCloudLab/neoneo-go
16 lines
241 B
Go
16 lines
241 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
|
||
|
log "github.com/go-kit/kit/log"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
logger := log.NewLogfmtLogger(log.NewSyncWriter(os.Stderr))
|
||
|
logger.Log("hello", true)
|
||
|
|
||
|
logger = log.With(logger, "module", "node")
|
||
|
logger.Log("foo", true)
|
||
|
}
|