Subject: | category_field and level_field not working |
Date: | Tue, 12 Nov 2019 15:21:25 +0000 (UTC) |
To: | "bug-Log-Log4perl-Appender-Fluent [...] rt.cpan.org" <bug-Log-Log4perl-Appender-Fluent [...] rt.cpan.org> |
From: | James Pattie <pattieja1 [...] yahoo.com> |
Hi,
The category_field and level_field are not being set so populating them in the log4perl config does nothing.
The following patch fixes that.
--- lib/Log/Log4perl/Appender/Fluent.pm.orig 2019-11-12 08:04:19.000000000 -0700
+++ lib/Log/Log4perl/Appender/Fluent.pm 2019-11-12 08:08:21.000000000 -0700
@@ -112,6 +112,8 @@
hostname_field => $options{hostname_field},
tag_prefix => $options{tag_prefix},
tag => $options{tag},
+ category_field => $options{category_field},
+ level_field => $options{level_field},
fluent => undef,
}, $class;
Thanks,
James A. Pattie