mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-28 05:51:59 -08:00
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
19 lines
472 B
Go
19 lines
472 B
Go
package test
|
|
|
|
import "github.com/bluenviron/mediamtx/internal/logger"
|
|
|
|
type nilLogger struct{}
|
|
|
|
func (nilLogger) Log(_ logger.Level, _ string, _ ...interface{}) {
|
|
}
|
|
|
|
// NilLogger is a logger to /dev/null
|
|
var NilLogger logger.Writer = &nilLogger{}
|
|
|
|
// Logger is a test logger.
|
|
type Logger func(logger.Level, string, ...interface{})
|
|
|
|
// Log implements logger.Writer.
|
|
func (l Logger) Log(level logger.Level, format string, args ...interface{}) {
|
|
l(level, format, args...)
|
|
}
|