MojoX::Log::Any makes it easy to use a
Log::Any::Adapter from within
Mojolicious without getting in the way of the user.
When imported from within a Mojolicious application (of from within a
package into which Mojolicious'
app function has been exported), it sets
log attribute to a
Log::Any::Proxy connected to
whatever adapter is currently available.
When imported, the logger defaults to using
which seems to be the currently maintained adapter for
parameters passed to the module's
import function are passed as is to the
get_logger function from
Log::Any, to allow for user customisation and to
maintain a coherent interface with that package.
There are numerous packages in the
MojoX::Log namespace providing an
interface with the various different logging mechanisms on CPAN; except
There is also a
Log::Any adapter for
Mojo::Log, which makes it possible
to use that logger from any application using
Log::Any; but not Mojolicious apps.
This package attempts to fill that void by offering Mojolicious applications an easy
way to plug into the current
Log::Any::Adapter (whatever it may be).