wlog

package
v0.7.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

implements distributed logging for waveshell processes

Index

Constants

This section is empty.

Variables

View Source
var GlobalSubsystem string

this should match base.ProcessType (set by main)

View Source
var LogConsumer func(LogEntry)

if not set, Logf is a no-op. will be set by main to hook up to the main packet.PacketSender

Functions

func LogLogEntry

func LogLogEntry(entry LogEntry)

func LogWithLogger

func LogWithLogger(entry LogEntry)

func Logf

func Logf(format string, args ...interface{})

func LogfRpc

func LogfRpc(reqId string, format string, args ...interface{})

log with a request id (if related to an rpc request)

func LogfSS

func LogfSS(subsystem string, format string, args ...interface{})

Types

type LogEntry

type LogEntry struct {
	LogLine   string `json:"logline"`
	ReqId     string `json:"reqid"`
	SubSystem string `json:"subsystem"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL