zapadapter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetZapLogFunc

func GetZapLogFunc(zapLogger *zap.Logger, before func(msg ectologger.EctoLogMessage) ectologger.EctoLogMessage) ectologger.EctoLogFunc

GetZapLogFunc returns a log function that logs to the provided zap logger before is a function that is called before the log message is logged. It can be used to modify the log message or add additional fields to it.

func NewZapEctoLogger

func NewZapEctoLogger(zapLogger *zap.Logger, before func(msg ectologger.EctoLogMessage) ectologger.EctoLogMessage) ectologger.Logger

NewZapEctoLogger returns a new EctoLogger that logs to the provided zap logger before is an optional function that is called before the log message is logged. It can be used to modify the log message or add additional fields to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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