package
0.24.6
Repository: https://github.com/serviceweaver/weaver.git
Documentation: pkg.go.dev

# Functions

FileSource returns a new Source that reads logs from files saved by a FileStore.
IsSystemGenerated returns true for log entries generated by system components.
NewFileStore returns a LogStore that writes files to the specified directory.
NewPrettyPrinter returns a new PrettyPrinter.
NewTestLogger returns a new TestLogger.
NewTestSlogger returns a new logger for tests.
Parse parses and type-checks a query.
Shorten returns a short prefix of the provided string.
ShortenComponent shortens the given component name to be of the format <pkg>.<IfaceType>.
StderrLogger returns a logger that pretty prints log entries to stderr.

# Constants

SystemAttributeKey is present as the key of an attribute (with an empty value) in log entries generated by Service Weaver system components.

# Structs

FileStore stores log entries in files.
LogHandler implements a custom slog.Handler.
Options configures the log entries produced by a logger.
PrettyPrinter pretty prints log entries.
TestLogger implements a logger for tests.

# Interfaces

Reader is a log entry iterator.
Source is a log source.
TB is the subset of the [testing.TB] interface needed by a TestLogger.

# Type aliases

Query is a filter for log entries.