Sometimes you want to see what queries you are running without having
to look at database logs or the console that your app is running on (if
it even is running on a console.) But what if you want to add tooling
to, eg, count queries per web request, and also see the queries being
run on the console? This module solves that problem.
Fundamentally it has a HashRef of logger objects, and passes all of the
logging commands through, in the order of the keys. So if you need a
logger to be first, make sure it has the "earliest" key.
Optionally takes a loggers hashref. The values must each be a "LOGGER".
Takes a name and a "LOGGER". Throws an exception if there is already a
logger with the passed name.
Takes a name. Throws an exception if there is no logger with the passed
name.
Takes a name and a "LOGGER". Will replace a logger with the same name,
or just add it if there wasn't already one there.
LOGGER
A logger is defined as an object that has the following methods: