MCPcopy Index your code
hub / github.com/celzero/firestack / splitmsg

Function splitmsg

intra/log/logger.go:851–876  ·  view source on GitHub ↗

splitmsg parses the two-character level prefix prepended by msgstr ("D ", "I ", "W ", "E ") and returns the corresponding LogLevel together with the message with that prefix stripped. If the prefix is not recognised, INFO and the original slice are returned.

(p []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

WriteMethod · 0.85
WriteMethod · 0.85

Calls 1

b2msgFunction · 0.85

Tested by

no test coverage detected