package
0.15.7
Repository: https://github.com/mdibaiee/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.
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.
PurgeLogs removes any log files that were started more than keepLogs ago and that aren't the current log.
RegisterFlags installs logutil flags on the given FlagSet.

# Structs

CallbackLogger is a logger that sends the logging event to a callback 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.