zapion

package module
v0.0.0-...-1451b2b Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 3 Imported by: 2

README

pion/zapion ⚡

uber-go/zap ⚡ backended pion logger

Contributing

License

MIT License - see LICENSE for full text

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZapFactory

type ZapFactory struct {
	BaseLogger  *zap.Logger
	EnableTrace bool
	// contains filtered or unexported fields
}

ZapFactory is a logger factory backended by zap logger.

func (*ZapFactory) NewLogger

func (f *ZapFactory) NewLogger(scope string) logging.LeveledLogger

NewLogger creates new scoped logger.

func (*ZapFactory) SyncAll

func (f *ZapFactory) SyncAll()

SyncAll calls Sync() method of all child loggers. It is recommended to call this before exiting the program to ensure never loosing buffered log.

Jump to

Keyboard shortcuts

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