Documentation ¶
Index ¶
- func NewDevelopment() (log.Logger, error)
- func NewLogger(zapLogger *zap.Logger) log.Logger
- func NewLoggerForTest(s suite.Suite) 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 NewLoggerForTest ¶ added in v0.20.0
NewLoggerForTest 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.