[Dbix-class] How do I make global attribute for schema?

Patrick Meidl pmeidl at ist.ac.at
Fri Jun 22 11:46:29 GMT 2018


On Tue, Jun 19 2018, Alex Povolotsky <tarkhil at over.ru> wrote:

> Using some web framework, like Mojolicious, I often need to pass, say,
> $app->log into DBIx::Class-related classes.

all logging modules I know are implemented as singletons with a method
to get an instance anywhere in your code (e.g. for Log::Log4perl, it's
get_logger()), so there is no need to pass the logger around.

cheers

    patrick

-- 
Patrick Meidl, Mag.
Senior Expert Software Engineering

IST - Institute of Science and Technology Austria
Am Campus 1
A-3400 Klosterneuburg, Austria

R I21.O3.201 (Building West, BT02)
T +43 2243 9000 1313
E pmeidl at ist.ac.at
W https://icp.ist.ac.at/search/users/pmeidl





More information about the DBIx-Class mailing list