MCPcopy Create free account
hub / github.com/chain/txvm / SetPrefix

Function SetPrefix

log/log.go:78–83  ·  view source on GitHub ↗

SetPrefix sets the global output prefix.

(keyval ...interface{})

Source from the content-addressed store, hash-verified

76
77// SetPrefix sets the global output prefix.
78func SetPrefix(keyval ...interface{}) {
79 b := appendPrefix(nil, keyval...)
80 logWriterMu.Lock()
81 procPrefix = b
82 logWriterMu.Unlock()
83}
84
85// AddPrefixkv appends keyval to any prefix stored in ctx,
86// and returns a new context with the longer prefix.

Callers 2

TestPrefixFunction · 0.85

Calls 1

appendPrefixFunction · 0.85

Tested by 2

TestPrefixFunction · 0.68