mirror of
https://github.com/gin-gonic/gin.git
synced 2025-08-23 15:30:52 +08:00
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@ -185,6 +185,8 @@ func TestLoggerWithConfigFormatting(t *testing.T) {
|
||||
buffer := new(bytes.Buffer)
|
||||
|
||||
router := New()
|
||||
router.engine.trustedCIDRs, _ = router.engine.prepareTrustedCIDRs()
|
||||
|
||||
router.Use(LoggerWithConfig(LoggerConfig{
|
||||
Output: buffer,
|
||||
Formatter: func(param LogFormatterParams) string {
|
||||
|
Reference in New Issue
Block a user