logger

package
v0.0.0-...-003ff46 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Error

func Error(args ...interface{})

func Info

func Info(args ...interface{})

func NewPionLoggerFactory

func NewPionLoggerFactory(logger Logger) logging.LoggerFactory

NewPionLoggerFactory creates a new pion logger factory that uses the provided logger

func SetDefaultLogger

func SetDefaultLogger(logger Logger)

func Trace

func Trace(args ...interface{})

func Warn

func Warn(args ...interface{})

Types

type Logger

type Logger interface {
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	WithFields(fields map[string]interface{}) Logger
	WithField(key string, value interface{}) Logger
	WithError(err error) Logger
}

Logger is a simple interface that can be implemented by any logging system

func GetLogger

func GetLogger() Logger

func NewDefaultLogger

func NewDefaultLogger() Logger

Jump to

Keyboard shortcuts

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