Subject: | Feature: converting log levels to integers in PatternLayout |
Hi,
I'm currently using Log::Log4perl in a large-ish application, and I've
defined a DBI appender. It all works nicely except that I'd like to run
queries like "show me all logging events on this application originating
from this module of priority WARNING *or higher*".
Using the %p placeholder allows me to store the priority in a column,
but as a string. This can be worked around on SQL engines that support
some form of ENUM, but I'd rather just store integers. Is such a thing
possible with Log::Log4perl and did I just miss it? If not, I was
thinking of writing a patch to allow %p{integer} or something like that.
Is that of interest to you?