zap

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Zap

func Zap(l kLogger.Logger) *zap.Logger

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func (Logger) Debug

func (l Logger) Debug(msg string, args ...interface{})

func (Logger) Error

func (l Logger) Error(msg string, args ...interface{})

func (Logger) Info

func (l Logger) Info(msg string, args ...interface{})

func (Logger) Init

func (l Logger) Init(config *kLogger.Config) (kLogger.Logger, error)

func (Logger) NoCaller

func (l Logger) NoCaller() kLogger.Logger

func (Logger) Sync

func (l Logger) Sync() error

func (Logger) Warn

func (l Logger) Warn(msg string, args ...interface{})

type ProtoMessage

type ProtoMessage struct {
	Value interface{}
}

func (ProtoMessage) MarshalJSON

func (pm ProtoMessage) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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