mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-16 02:50:40 +01:00
Introduce a new lifecycle callback—`checkParserInst`—to perform configuration sanity checks on parser instances immediately after they’re created. This establishes a standardized validation point (similar to `checkCnf` in other module types) without altering existing parser logic. By wiring `checkParserInst` into: - the module template (macros for definition and registration), - the module loader (`doModInit`) with graceful fallback, - the runtime configuration flow (`rsconf.c`) just after `newParserInst`, and by providing empty stubs in all current parser modules (contrib and plugins), we now have a clear, uniform spot to add parser-specific validation rules in subsequent patches. This improves future maintainability and robustness of parser configuration handling.