Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ConfigurationKey is the portion of the configuration that this package reads.
ConfigurationKey = "logging"
)
Variables ¶
View Source
var Module = fx.Options(fx.Provide(NewZap, NewMortarProxy))
Module provides a zap logger for structured logging.
In YAML, logging configuration might look like this:
logging: level: info development: false sampling: initial: 100 thereafter: 100 encoding: json
Functions ¶
This section is empty.
Types ¶
type NewMortarLogResult ¶
func NewMortarProxy ¶
func NewMortarProxy(p NewMortarLogParams) (NewMortarLogResult, error)
type NewZapParams ¶
NewZapParams defines the dependencies of the zapfx module.
type NewZapResult ¶
NewZapResult defines the objects that the zapfx module provides.
func NewZap ¶
func NewZap(p NewZapParams) (NewZapResult, error)
NewZap exports functionality similar to Module, but allows the caller to wrap or modify NewZapResult. Most users should use Module instead.
Click to show internal directories.
Click to hide internal directories.