loggerimpl

package
v1.2.6-prerelease2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 14 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDevelopment

func NewDevelopment() (log.Logger, error)

NewDevelopment returns a logger at debug level and log into STDERR

func NewLogger

func NewLogger(zapLogger *zap.Logger) log.Logger

NewLogger returns a new logger

func NewLoggerForTest added in v0.20.0

func NewLoggerForTest(s suite.Suite) log.Logger

NewLoggerForTest is a helper to create new development logger in unit test

func NewNopLogger

func NewNopLogger() log.Logger

NewNopLogger returns a no-op logger

func NewReplayLogger

func NewReplayLogger(logger log.Logger, ctx workflow.Context, enableLogInReplay bool) log.Logger

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL