package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

AllChannels returns a copy of channelValues, for use in the ALL configuration.
DefaultConfig returns a suitable default configuration when logging is meant to primarily go to files.
DefaultStderrConfig returns a suitable default configuration when logging is meant to primarily go to stderr.
SelectChannels is a constructor for ChannelFilters that helps in tests.

# Constants

DefaultFileFormat is the entry format for file sinks when not specified in a configuration.
DefaultFilePerms is the default permissions used in file-defaults.
DefaultFluentFormat is the entry format for fluent sinks when not specified in a configuration.
DefaultHTTPFormat is the entry format for HTTP sinks when not specified in a configuration.
DefaultStderrFormat is the entry format for stderr sinks.

# Variables

# Structs

CaptureFd2Config represents the configuration for the fd2 capture sink.
ChannelFilters represents a map of severities to channels.
ChannelList represents a list of channels.
CommonBufferSinkConfig represents the common buffering configuration for sinks.
CommonBufferSinkConfigWrapper is a BufferSinkConfig with a special value represented in YAML by the string "NONE", which actively disables buffering (in the sense that it overrides buffering that is enabled by default).
CommonSinkConfig represents the common configuration shared across all sinks.
Config represents the top-level logging configuration.
FileDefaults represent configuration defaults for file sinks.
FileSinkConfig represents the configuration for one file sink.
FluentDefaults represent configuration defaults for fluent sinks.
FluentSinkConfig represents the configuration for one fluentd sink.
Holder is a configuration holder to interface with pflag, which pretty-prints the configuration using the "flow" format.
HTTPDefaults refresents the configuration defaults for HTTP sinks.
HTTPSinkConfig represents the configuration for one http sink.
SinkConfig represents the sink configurations.
StderrSinkConfig represents the configuration for the stderr sink.

# Type aliases

BufferFormat is a string restricted to "json-array" and "newline".
ByteSize represents a size in bytes.
FilePermissions is a 9-bit number corresponding to the fs.FileMode a logfile is created with.
HTTPSinkMethod is a string restricted to "POST" and "GET".