Closed wathuta closed 8 months ago
You can use:
config := slogfiber.Config{
DefaultLevel: slog.LevelInfo,
ClientErrorLevel: slog.LevelWarn,
ServerErrorLevel: slog.LevelError,
}
app := fiber.New()
app.Use(slogfiber.NewWithConfig(logger, config))
I just added these parameters to the readme.
The default level for error status 400,404,422 is WARN. How can i dynamically set the level of other status a part from 200 to be ERROR? Here's my log configuration