package
3.3.0+incompatible
Repository: https://github.com/google/agi.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Bind returns a new Logger from the context ctx with the additional values in v.
Broadcast forwards all messages sent to Broadcast to all supplied handlers.
Buffer returns a Writer that writes to the returned buffer.
Channel is a log handler that passes log messages to another Handler through a chan.
D logs a debug message to the logging target.
E logs a error message to the logging target.
Enter returns a new context with the trace-stack pushed by name.
Err creates a new error that wraps cause with the current logging information.
Errf creates a new error that wraps cause with the current logging information.
F logs a fatal message to the logging target.
From returns a new Logger from the context ctx.
GetClock returns the Clock assigned to ctx.
GetFilter returns the Filter assigned to ctx.
GetHandler returns the Handler assigned to ctx.
GetProcess returns the process assigned to ctx.
GetStacktracer returns the Stacktracer assigned to ctx.
GetTag returns the Tag assigned to ctx.
GetTrace returns the trace-stack.
HHMMSSsss prints the time as a HH:MM:SS.sss.
I logs a info message to the logging target.
NewHandler returns a Handler that calls handle for each message and close when the handler is closed.
OnClosed returns a handler that forwards all messages on to h, but also calls closed after the returned handler is closed.
PutClock returns a new context with the Clock assigned to w.
PutFilter returns a new context with the Filter assigned to w.
PutHandler returns a new context with the Handler assigned to w.
PutProcess returns a new context with the process assigned to w.
PutStacktracer returns a new context with the Stacktracer assigned to w.
PutTag returns a new context with the tag assigned to w.
RegisterStyle registers the style s.
Std returns a Writer that writes to stdout if the message severity is less than an error, otherwise it writes to stderr.
Stdout returns a Writer that writes to stdout for all severities.
SubTest returns the context with the TestHandler replaced with t.
TestHandler is a Writer that uses the style to write records to t's using the style s.
Testing returns a default context with a TestHandler installed.
W logs a warning message to the logging target.

# Constants

Debug indicates debug-level messages.
Error indicates non terminal failure conditions that may have an effect on results.
Fatal indicates a fatal error.
Info indicates minor informational messages that should generally be ignored.
NoSeverity is the option to disable the printing of the severity.
NoValues is the option to disable the printing of values.
SeverityLong is the option to display the severity in its full name.
SeverityShort is the option to display the severity as a single character.
ValuesMultiLine is the option to display each value on a separate line.
ValuesSingleLine is the option to display all values on a single line.
Verbose indicates extremely verbose level messages.
Warning indicates issues that might affect performance or compatibility, but could be ignored.

# Variables

Brief is a style that only prints the text and short severity of the message.
Detailed is a style that prints the timestamp, tag, trace, process, long severity and multi-line values.
NoClock is a Clock that disables printing of the time.
Normal is a style that prints the timestamp, tag, trace, process, short severity.
Raw is a style that only prints the text of the message.

# Structs

Broadcaster forwards all messages to all supplied handlers.
Indirect is a Handler that can be dynamically retarget to another logger.
Logger provides a logging interface.
No description provided by the author
No description provided by the author
Style provides customization for printing messages.
No description provided by the author

# Interfaces

Clock is the interface implemented by types that tell the time.
Filter is the filter of log messages.
Handler is the handler of log messages.
Stacktracer is the interface that controls when a stacktrace is taken.

# Type aliases

FixedClock is a Clock that returns a fixed time.
Severity defines the severity of a logging message.
SeverityFilter implements the Filter interface which filters out any messages below the severity value.
SeverityStacktracer implements the Stacktracer interface which adds a stacktrace to messages equal to or more than the severity level.
SeverityStyle is an enumerator of ways that severities can be printed.
No description provided by the author
V is a map of key-value pairs.
No description provided by the author
ValueStyle is an enumerator of ways that values can be printed.
Writer is a function that writes out a formatted log message.