package
4.3.2+incompatible
Repository: https://github.com/qbit/client.git
Documentation: pkg.go.dev

# Functions

ConvertRPCTagsToLogTags takes any RPC tags in the context and makes them log tags.
EnableBufferedLogging turns on buffered logging - this is a performance boost at the expense of not getting all the logs in a crash.
No description provided by the author
No description provided by the author
LogTagsFromContext returns the log tags being passed along with the given context.
LogTagsFromContextRPC is a wrapper around LogTagsFromContext that simply casts the result to the type expected by rpc.Connection.
No description provided by the author
New creates a new Standard logger for module.
NewAutoFlushingBufferedWriter returns an io.Writer that buffers its output and flushes automatically after `flushFrequency`.
NewContext returns a new Context that carries adds the given log tag mappings (context key -> display string).
No description provided by the author
NewLoggerf adapts a logger.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewWithCallDepth creates a new Standard logger for module, and when printing file names and line numbers, it goes extraCallDepth up the stack from where logger was invoked.
No description provided by the author
No description provided by the author
No description provided by the author
RestoreConsoleMode restores the current text attributes from a global, in case nonstandard colors are expected.
SaveConsoleMode records the current text attributes in a global, so it can be restored later, in case nonstandard colors are expected.
SetLogFileConfig sets the log file config to be used globally.
Shutdown shuts down logger, flushing remaining logs if a backend with buffering is used.

# Constants

CtxLogTagsKey defines a context key that can associate with a map of context keys (key -> descriptive-name), the mapped values of which should be logged by a Standard logger if one of those keys is seen in a context during a log call.

# Structs

LogFileConfig is the config structure for new style log files with rotation.
No description provided by the author
No description provided by the author
No description provided by the author
RPCLoggerAdapter is used to turn a logger complying to the rpc.LogOutput interface into one that can be used as a logger.Logger.
SingleContextLogger logs everything in the same context.
No description provided by the author
TestLogger is a Logger that writes to a TestLogBackend.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
Loggerf is a minimal log interface (using proper formatter style methods).
TestLogBackend is an interface for logging to a test object (i.e., a *testing.T).

# Type aliases

No description provided by the author
CtxStandardLoggerKey is a type defining context keys used by the Standard logger.
No description provided by the author