Documentation ¶
Index ¶
- func NewOTELLoggerProvider(res *resource.Resource) (*sdklog.LoggerProvider, error)
- func NewZap(debugMode bool, loggerProvider *sdklog.LoggerProvider) (*zap.SugaredLogger, error)
- func SetZapInContext(ctx context.Context, l *zap.SugaredLogger) context.Context
- func ZapFromContext(ctx context.Context) *zap.SugaredLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOTELLoggerProvider ¶
func NewOTELLoggerProvider(res *resource.Resource) (*sdklog.LoggerProvider, error)
func NewZap ¶
func NewZap(debugMode bool, loggerProvider *sdklog.LoggerProvider) (*zap.SugaredLogger, error)
func SetZapInContext ¶
func ZapFromContext ¶
func ZapFromContext(ctx context.Context) *zap.SugaredLogger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.