package
2.2.5
Repository: https://github.com/protocolone/go-core.git
Documentation: pkg.go.dev

# Functions

Args returns func hook a logger for replace fmt placeholders on represent values.
IgnoreLevelFilter returns func hook a logger for ignore filter by logger level.
NewLevelWriter provide adapter from Logger instance to io.Writer with custom level.
NewMock returns mock instance implemented of Logger interface.
NewZap returns uber/zap logger instance implemented of Logger interface.
PairArgs returns func hook a logger for to pair args.
Provider returns logger instance implemented of Logger interface with resolved dependencies.
ProviderCfg returns configuration for production logger.
ProviderTest returns stub/mock logger instance implemented of Logger interface with resolved dependencies.
Stack constructs a field that stores a stacktrace of the current goroutine under provided key.
StringToLoggerLevelHookFunc returns decoder func hook for converting string representation to RFC5424 level.
WithFields returns func hook a logger for adding fields for call.
WithPrettyFields returns func hook a logger for adding fields for call with prettifier.
WithTags returns func hook a logger for adding tags for call.
WrapLogger just wraps zap logger without unnecessary actions and return logger.

# Constants

Alert: action must be taken immediately.
Critical: critical conditions.
Debug: debug-level messages.
Emergency: system is unusable.
Error: error conditions.
Informational: informational messages.
Notice: normal but significant condition.
Warning: warning conditions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

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

# Structs

Config is a general logger config settings.
Entity represent log struct with all assets.
Mock is the logger with stubbed methods.
Zap is uber/zap logger implemented of Logger interface.

# Interfaces

Logger is the interface for logger client.

# Type aliases

No description provided by the author
Level represent RFC5424 logger severity.
Option is func hook for underling logic call.
No description provided by the author