MCPcopy Index your code
hub / github.com/aceld/zinx / SetPrefix

Method SetPrefix

zlog/logger_core.go:372–376  ·  view source on GitHub ↗

SetPrefix sets a custom prefix for the log (设置日志的 用户自定义前缀字符串)

(prefix string)

Source from the content-addressed store, hash-verified

370// SetPrefix sets a custom prefix for the log
371// (设置日志的 用户自定义前缀字符串)
372func (log *ZinxLoggerCore) SetPrefix(prefix string) {
373 log.mu.Lock()
374 defer log.mu.Unlock()
375 log.prefix = prefix
376}
377
378// SetLogFile sets the log file output
379// (设置日志文件输出)

Callers 1

SetPrefixFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected