fiber icon indicating copy to clipboard operation
fiber copied to clipboard

🤗 [Question]: Disable default logging

Open marcoscaco opened this issue 3 years ago • 4 comments

There any way of doing this? I have a '/' GET method for AWS NLB health checking, and my cloud watch logs are getting messy with the default logging of Fiber

marcoscaco avatar Dec 20 '22 22:12 marcoscaco

Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

welcome[bot] avatar Dec 20 '22 22:12 welcome[bot]

@marcoscaco there is no default logging except the startup message in fiber.

The startup message can be disabled as follows:

app := fiber.New(fiber.Config{
	DisableStartupMessage: true,
})

leonklingele avatar Dec 20 '22 22:12 leonklingele

Seems like DisableStartupMessage was removed in the fiber/v3, how could I remove this log info?

Image Image

KunMoe avatar Oct 23 '25 13:10 KunMoe

@KUN1007 The configs were consolidated, its on the docs. https://docs.gofiber.io/next/api/fiber#server-listening

gaby avatar Oct 23 '25 13:10 gaby