Documentation ¶
Index ¶
- func NewDevelopment() (log.Logger, error)
- func NewDevelopmentForTest(s suite.Suite) log.Logger
- func NewLogger(zapLogger *zap.Logger) 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
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 NewDevelopmentForTest ¶
NewDevelopmentForTest is a helper to create new development logger in unit test
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.