forked from TrueCloudLab/neoneo-go
4023661cf1
* added headersOp for safely processing headers * Better handling of protocol messages. * housekeeping + cleanup tests * Added more blockchain logic + unit tests * fixed unreachable error. * added structured logging for all (node) components. * added relay flag + bumped version
15 lines
241 B
Go
15 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)
|
|
}
|