Documentation ¶
Index ¶
- func NewDevelopment() (log.Logger, error)
- func NewLogger(zapLogger *zap.Logger, opts ...Option) log.Logger
- func NewNopLogger() log.Logger
- func NewReplayLogger(logger log.Logger, ctx workflow.Context, enableLogInReplay bool) log.Logger
- func NewThrottledLogger(logger log.Logger, rps dynamicconfig.IntPropertyFn) log.Logger
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDevelopment ¶
NewDevelopment returns a logger at debug level and log into STDERR
func NewReplayLogger ¶
NewReplayLogger creates a logger which is aware of cadence's replay mode
func NewThrottledLogger ¶
func NewThrottledLogger(logger log.Logger, rps dynamicconfig.IntPropertyFn) log.Logger
NewThrottledLogger returns an implementation of logger that throttles the log messages being emitted. The underlying implementation uses a token bucket ratelimiter and stops emitting logs once the bucket runs out of tokens
Fatal/Panic logs are always emitted without any throttling
Types ¶
Click to show internal directories.
Click to hide internal directories.