On Tue, Jun 19 2018, Alex Povolotsky <tark...@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 pme...@ist.ac.at W https://icp.ist.ac.at/search/users/pmeidl _______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://firstname.lastname@example.org