1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-07-24 20:19:39 +02:00
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 Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
color_console.go log: journald integration (#2869) 2024-08-09 07:49:13 +00:00
color_console_other.go Drop SSPI auth support and more Windows files (#7148) 2025-03-08 00:43:41 +00:00
color_router.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
event_format.go log: journald integration (#2869) 2024-08-09 07:49:13 +00:00
event_format_test.go log: journald integration (#2869) 2024-08-09 07:49:13 +00:00
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 feat: add a buffer writer to the logger, for internal use (#6551) 2025-01-13 13:40:24 +00:00
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 Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
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 Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
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 chore: Make Forgejo build with go1.24 2024-12-17 16:12:22 +01:00
groutinelabel_go1.24.go chore: Make Forgejo build with go1.24 2024-12-17 16:12:22 +01:00
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 Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
logger_global.go Fix sub-command log level (#25537) 2023-06-28 08:02:06 +02:00
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 Do not output "Trace" level logs from process manager by default (#24952) 2023-05-27 10:55:24 +00:00
manager_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
misc.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
stack.go Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00