package
1.8.0
Repository: https://github.com/src-d/go-vitess.git
Documentation: pkg.go.dev

# Functions

GetFormatter returns a formatter function for objects conforming to the Formatter interface.
New returns a new StreamLogger that can stream events to subscribers.
ShouldEmitLog returns whether the log with the given SQL query should be emitted or filtered.

# Constants

QueryLogFormatJSON is the format specifier for json querylog output.
QueryLogFormatText is the format specifier for text querylog output.

# Variables

QueryLogFilterTag contains an optional string that must be present in the query for it to be logged.
QueryLogFormat controls the format of the query log (either text or json).
RedactDebugUIQueries controls whether full queries and bind variables are suppressed from debug UIs.

# Structs

StreamLogger is a non-blocking broadcaster of messages.

# Interfaces

Formatter is a simple interface for objects that expose a Format function as needed for streamlog.

# Type aliases

LogFormatter is the function signature used to format an arbitrary message for the given output writer.