Documentation
¶
Index ¶
Constants ¶
View Source
const SystemAttributeKey = "serviceweaver/system"
Variables ¶
This section is empty.
Functions ¶
func IsSystemGenerated ¶
IsSystemGenerated returns true for log entries generated by system components.
func ShortenComponent ¶
Types ¶
type Buffer ¶
type Buffer []byte
Buffer is a byte buffer.
This implementation is adapted from the unexported type buffer in go/src/fmt/print.go.
type PrettyFormatter ¶
type PrettyPrinter ¶
type PrettyPrinter struct {
// contains filtered or unexported fields
}
PrettyPrinter pretty prints log entries to json string.
func NewPrettyPrinter ¶
func NewPrettyPrinter(w io.Writer) *PrettyPrinter
Click to show internal directories.
Click to hide internal directories.