fiber/middleware/logger
edvardsanta c25ea013f2 feat(logger): Add predefined log formats
This commit introduces predefined log formats for the logger middleware, enhancing its flexibility and ease of use. Users can now specify formats like "common", "combined", and "json" in addition to the default format.

Changes:

- Added a `format.go` file to store predefined log format constants.
- Updated `config.go` to include documentation for the `Format` configuration option, explaining the available placeholders and predefined formats.
- Modified `logger.go` to utilize the predefined formats based on the `Format` configuration.
- Added a new test case `Test_Logger_CLF` in `logger_test.go` to verify the "common" log format.
2025-03-18 14:38:51 -03:00
..
config.go feat(logger): Add predefined log formats 2025-03-18 14:38:51 -03:00
data.go v3: Use Named Fields Instead of Positional and Align Structures to Reduce Memory Usage (#3079) 2024-07-23 08:37:45 +02:00
default_logger.go 🧹 chore: Fix linter workflow failures (#3354) 2025-03-17 08:29:51 +01:00
format.go feat(logger): Add predefined log formats 2025-03-18 14:38:51 -03:00
logger.go feat(logger): Add predefined log formats 2025-03-18 14:38:51 -03:00
logger_test.go feat(logger): Add predefined log formats 2025-03-18 14:38:51 -03:00
tags.go Bump golangci-lint to v1.62.0 (#3196) 2024-11-11 10:37:27 +01:00
template_chain.go 👷 v3 (ci): fix some linter warnings 2023-02-09 22:33:45 +03:00
utils.go 🔥 Feature: Add AllLogger to Config (#3153) 2024-12-01 13:32:52 +01:00