loader: add Options.Logger to route loading warnings

Options.Logger, when set, receives the warnings raised by the loader:
obsolete version attribute, YAML 1.1 booleans, unset variables during
interpolation and misconfigured resource loaders. It is inherited by
the files loaded through include and extends. When nil, warnings keep
going through the standard logrus logger, with the same messages.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2026-10-22 17:28:33 +02:00 • committed by Nicolas De loof
commit 0481a82db0
4 changed files with 298 additions and 20 deletions