package libp2pwebrtc

import (
	logging 
	pionLogging 
)

var log = logging.Logger("webrtc-transport")

// pionLog is the logger provided to pion for internal logging
var pionLog = logging.Logger("webrtc-transport-pion")

// pionLogger wraps the StandardLogger interface to provide a LeveledLogger interface
// as expected by pion
// Pion logs are too noisy and have invalid log levels. pionLogger downgrades all the
// logs to debug
type pionLogger struct {
	logging.StandardLogger
}

var pLog = pionLogger{pionLog}

var _ pionLogging.LeveledLogger = pLog

func ( pionLogger) ( string) {
	.StandardLogger.Debug()
}

func ( pionLogger) ( string) {
	.StandardLogger.Debug()
}

func ( pionLogger) ( string,  ...interface{}) {
	.StandardLogger.Debugf(, ...)
}

func ( pionLogger) ( string) {
	.StandardLogger.Debug()
}

func ( pionLogger) ( string,  ...interface{}) {
	.StandardLogger.Debugf(, ...)
}

func ( pionLogger) ( string) {
	.StandardLogger.Debug()
}

func ( pionLogger) ( string,  ...interface{}) {
	.StandardLogger.Debugf(, ...)
}

func ( pionLogger) ( string) {
	.StandardLogger.Debug()
}
func ( pionLogger) ( string,  ...interface{}) {
	.StandardLogger.Debugf(, ...)
}

// loggerFactory returns pLog for all new logger instances
type loggerFactory struct{}

// NewLogger returns pLog for all new logger instances. Internally pion creates lots of
// separate logging objects unnecessarily. To avoid the allocations we use a single log
// object for all of pion logging.
func (loggerFactory) ( string) pionLogging.LeveledLogger {
	return pLog
}

var _ pionLogging.LoggerFactory = loggerFactory{}

var pionLoggerFactory = loggerFactory{}