Update middleware/logger/default_logger.go

pull/3333/head
RW 2025-03-10 09:00:50 +01:00 committed by GitHub
parent b479e966b6
commit 903c2acb18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@ import (
// default logger for fiber
func defaultLoggerInstance(c fiber.Ctx, data *Data, cfg Config) error {
// Check if Filter is defined and call it.
// Now, if Filter(c) == true, we SKIP logging:
// Check if Skip is defined and call it.
// Now, if Skip(c) == true, we SKIP logging:
if cfg.Skip != nil && cfg.Skip(c) {
return nil // Skip logging if Filter returns true
return nil // Skip logging if Skip returns true
}
// Alias colors