package
1.1.0-rc7
Repository: https://github.com/pavedroad-io/go-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Debug emulates function from go log pkg.
Debugf emulates function from go log pkg.
Debugln emulates function from go log pkg.
DefaultCloudEventsCfg returns default cloudevents configuration.
DefaultLoggerCfg returns default log configuration.
DefaultLoggerCfg returns default log configuration.
DefaultProducerCfg returns default kafka configuration.
DefaultRotationCfg returns default cloudevents configuration.
Error emulates function from go log pkg.
Errorf emulates function from go log pkg.
Errorln emulates function from go log pkg.
No description provided by the author
Fatal emulates function from go log pkg.
Fatalf emulates function from go log pkg.
Fatalln emulates function from go log pkg.
FillConfiguration fills config from defaults, config file and environment.
GetLoggerConfiguration generates config from defaults/config-file/environment.
Info emulates function from go log pkg.
Infof emulates function from go log pkg.
Infoln emulates function from go log pkg.
NewLogger returns a Logger instance.
Panic emulates function from go log pkg.
Panicf emulates function from go log pkg.
Panicln emulates function from go log pkg.
Print emulates function from go log pkg.
Printf emulates function from go log pkg.
Println emulates function from go log pkg.
Warn emulates function from go log pkg.
Warnf emulates function from go log pkg.
Warnln emulates function from go log pkg.

# Constants

Supported configuration types.
Optional - adheres to RFC2046.
Optional - no specific format.
Optional - URI-reference.
Types of logger formats.
set by WithFields or FilterFunc.
message signature.
Required - unique per producer.
incremental.
Required - URI-reference.
Required - current spec is "1.0".
Optional - possibly pass log level.
Optional - adheres to RFC3339.
Required - reverse-DNS name prefix.
completely unique.
Supported environment name prefixes.
Types of compression to map to sarama.
Types of compression to map to sarama.
default.
Types of compression to map to sarama.
Types of compression to map to sarama.
Supported auto init/config environment names.
Default config file name without extension Config file name exported on SIGUSR1.
Supported auto init/config environment names.
Supported log levels.
Supported configuration types.
Supported log levels.
Default config file name without extension Config file name exported on SIGUSR1.
Types of kafka keys to generate.
Supported log levels.
Supported configuration types.
Types of kafka keys to generate.
Types of kafka keys to generate.
Types of kafka partitioning to map to sarama.
default.
Types of logger formats.
Supported environment name prefixes.
default.
Supported auto init/config environment names.
Supported environment name prefixes.
Supported log packages.
Supported auto init/config environment names.
Supported log levels.
default.
Supported environment name prefixes.
Types of kafka partitioning to map to sarama.
Types of logger formats.
default.
default.
Types of kafka keys to generate.
Types of kafka keys to generate.
TopicKey is LogFields key to pass topic through WithFields Example: log.WithFields(LogFields{TopicKey: "mytopic"}).Infof(...).
WaitForAll waits for all in-sync replicas to commit.
default.
WaitForNone does not wait for any response.
Supported log levels.
Supported log packages.

# Variables

No description provided by the author
No description provided by the author

# Structs

CloudEvents provides the cloudevents object type.
CloudEventsConfiguration provides cloudevents configuration type.
KafkaProducer wraps sarama producer with config.
LoggerConfiguration stores the config for the logger.
LogrusConsoleHook provides a console hook.
LogrusDebugHook provides a debug hook.
LogrusKafkaHook provides a kafka producer hook.
ProducerConfiguration provides kafka producer configuration type.
RotationConfiguration stores the config for log rotation.
ZapKafkaWriter is a zap WriteSyncer (io.Writer) that writes messages to Kafka.

# Interfaces

Logger is the contract for the logger interface.

# Type aliases

ConsoleType provided to select logger format.
FilterFunc func to add/modify/remove message map entries and return kafka key.
FormatType provided to select logger format.
KeyFunc func to return key calculated from kafka message contents.
LevelType provided to select log level.
LogFields provided for calls to WithFields for structured logging.
PackageType provided to select underlying log package.