{"modulePath":"github.com/wavetermdev/waveterm/waveshell","version":"v0.7.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package wlog\n\nimplements distributed logging for waveshell processes\n\n## Variables\n\n```go\nvar GlobalSubsystem string\n```\nthis should match base.ProcessType (set by main)\n\n```go\nvar LogConsumer func(LogEntry)\n```\nif not set, Logf is a no-op.  will be set by main to hook up to the main packet.PacketSender\n\n## Functions\n\n```go\nfunc LogLogEntry(entry LogEntry)\n```\n\n```go\nfunc LogWithLogger(entry LogEntry)\n```\n\n```go\nfunc Logf(format string, args ...interface{})\n```\n\n```go\nfunc LogfRpc(reqId string, format string, args ...interface{})\n```\nlog with a request id (if related to an rpc request)\n\n```go\nfunc LogfSS(subsystem string, format string, args ...interface{})\n```\n\n## Types\n\n```go\ntype LogEntry struct {\n\tLogLine   string `json:\"logline\"`\n\tReqId     string `json:\"reqid\"`\n\tSubSystem string `json:\"subsystem\"`\n}\n```\n\n","path":"github.com/wavetermdev/waveterm/waveshell/pkg/wlog","name":"wlog","synopsis":"implements distributed logging for waveshell processes","isRedistributable":true}
