package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Functions

EventString returns the line in one string.
EventToBuffer formats an individual Event into a buffer, without the final '\n'.
Flush calls the functions registered through OnFlush() and waits for them.
LogEvent sends an event to a Logger, using the level specified in the event.
NewCallbackLogger returns a new logger to the given callback.
NewChannelLogger returns a CallbackLogger which will write the data on a channel.
NewConsoleLogger returns a simple ConsoleLogger.
NewLoggerWriter returns an io.Writer on top of the logger.
NewMemoryLogger returns a new MemoryLogger.
NewTeeLogger returns a logger that sends its logs to both loggers.
NewThrottledLogger will create a ThrottledLogger with the given name and throttling interval.
OnFlush registers a function to be called when Flush() is invoked.
ProtoToTime converts a logutilpb.Time to a time.Time.
PurgeLogs removes any log files that were started more than keepLogs ago and that aren't the current log.
TimeToProto converts the time.Time to a logutilpb.Time.

# Structs

CallbackLogger is a logger that sends the logging event to a callback for consumption.
ChannelLogger is a Logger that sends the logging events through a channel for consumption.
ConsoleLogger is a Logger that uses glog directly to log, at the right level.
LoggerWriter is an adapter that implements the io.Writer interface.
MemoryLogger keeps the logging events in memory.
TeeLogger is a Logger that sends its logs to two underlying logger.
ThrottledLogger will allow logging of messages but won't spam the logs.

# Interfaces

EventStream is an interface used by RPC clients when the streaming RPC returns a stream of log events.
Logger defines the interface to use for our logging interface.