Logo
Explore Help
Sign In
ejr/feedkit
1
0
Fork 0
You've already forked feedkit
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
main
feedkit/logging/logging.go

9 lines
323 B
Go
Raw Permalink Normal View History

feedkit: ergonomics pass (shared logger, route compiler, param helpers) - Add logging.Logf as the canonical printf-style logger type used across feedkit. - Update scheduler and dispatch to alias their Logger types to logging.Logf. - Eliminates type-mismatch friction when wiring one log function through the system. - Add dispatch.CompileRoutes(*config.Config) ([]dispatch.Route, error) - Compiles config routes into dispatch routes with event.ParseKind normalization. - If routes: is omitted, defaults to “all sinks receive all kinds”. - Expand config param helpers for both SourceConfig and SinkConfig - Add ParamBool/ParamInt/ParamDuration/ParamStringSlice (+ Default variants). - Supports common YAML-decoded types (bool/int/float/string, []any, etc.) - Keeps driver code cleaner and reduces repeated type assertions. - Fix Postgres sink validation error prefix ("postgres sink", not "rabbitmq sink").
2026-01-13 14:40:29 -06:00
package logging
// Logf is the shared printf-style logger signature used across feedkit.
//
// Keeping this in one place avoids the "scheduler.Logger vs dispatch.Logger"
// friction and makes it trivial for downstream apps to pass a single log
// function throughout the system.
type Logf func(format string, args ...any)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 85ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API