[BZ-996572] create loggers declaratively with kmodule.xml
(cherry picked from commit 666a02dbd5cc2a7cc1d384e6f6999fd598783c5d)