Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debug(msg string, keyvals ...interface{}) Info(msg string, keyvals ...interface{}) Warn(msg string, keyvals ...interface{}) Error(msg string, keyvals ...interface{}) }
Logger is an interface that can be passed to ClientOptions.Logger.
func NewStructuredLogger ¶ added in v1.25.0
NewStructuredLogger creates an adapter around the given logger to be passed to Temporal.
func Skip ¶ added in v1.25.0
Skip creates a child Logger that increase increases its' caller skip depth if it implements WithSkipCallers. Otherwise returns the original logger.
type WithLogger ¶
type WithLogger interface {
With(keyvals ...interface{}) Logger
}
WithLogger is an optional interface that prepend every log entry with keyvals. This call must not mutate the original logger.
type WithSkipCallers ¶ added in v1.25.0
WithSkipCallers is an optional interface that a Logger can implement that may create a new child logger that skips the number of stack frames of the caller. This call must not mutate the original logger.