github.com/nyan233/littlerpc@v0.4.6-0.20230316182519-0c8d5c48abaf/core/server/test_logger.go (about) 1 package server 2 3 import ( 4 "github.com/nyan233/littlerpc/core/common/logger" 5 ) 6 7 type testLogger struct { 8 logger logger.LLogger 9 } 10 11 func (t *testLogger) Info(format string, v ...interface{}) { 12 t.logger.Info(format, v...) 13 } 14 15 func (t *testLogger) Debug(format string, v ...interface{}) { 16 t.logger.Debug(format, v...) 17 } 18 19 func (t *testLogger) Warn(format string, v ...interface{}) { 20 t.logger.Warn(format, v...) 21 } 22 23 func (t *testLogger) Error(format string, v ...interface{}) { 24 t.logger.Error(format, v...) 25 } 26 27 func (t *testLogger) Panic(format string, v ...interface{}) { 28 t.logger.Panic(format, v...) 29 }