Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
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 NewDefaultLogger ¶
func NewDefaultLogger() Logger
Click to show internal directories.
Click to hide internal directories.