in reply to RFC: Alex::Log

Sounds like a perfect opportunity to use Log::Log4perl. This way, you're getting both levels and categories, as orthogonal ways of controlling the amount and source of logged messages.

It has (among many others) a Log::Log4perl::Appender::DBI appender which forwards messages to a database via DBI.

Or, write your own appender.