forgejo/modules/log
zokki 72620db8df feat: add a EXCLUSION to the logger (#8212)
This feature is intended to help reduce noisy logs generated by routine Kubernetes probes and Prometheus scraping. While logs are essential, these specific requests (e.g., to /metrics and /api/healthz) generally don't provide useful information and tend to clutter the output.

The goal is to introduce functionality that effectively acts as the inverse of the existing EXPRESSION mode—allowing logging to be excluded based on a condition, rather than included.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8212
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: zokki <zokki.softwareschmiede@gmail.com>
Co-committed-by: zokki <zokki.softwareschmiede@gmail.com>
2025-07-04 00:08:23 +02:00
..
color.go
color_console.go
color_console_other.go Drop SSPI auth support and more Windows files (#7148) 2025-03-08 00:43:41 +00:00
color_router.go
event_format.go
event_format_test.go
event_writer.go feat: add a EXCLUSION to the logger (#8212) 2025-07-04 00:08:23 +02:00
event_writer_base.go feat: add a EXCLUSION to the logger (#8212) 2025-07-04 00:08:23 +02:00
event_writer_buffer.go
event_writer_buffer_test.go feat: add a EXCLUSION to the logger (#8212) 2025-07-04 00:08:23 +02:00
event_writer_conn.go
event_writer_conn_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v1.64.6 (forgejo) (#7118) 2025-03-04 21:38:35 +00:00
event_writer_console.go
event_writer_file.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
flags.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
flags_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
groutinelabel.go
groutinelabel_go1.24.go
groutinelabel_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
init.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
level.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
level_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
logger.go
logger_global.go
logger_impl.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
logger_impl_test.go fix: correct logging if caller has generics 2025-03-05 00:10:46 +01:00
logger_test.go feat: add a EXCLUSION to the logger (#8212) 2025-07-04 00:08:23 +02:00
manager.go
manager_test.go
misc.go
stack.go