Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9245105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:11:27+00:00 2026-06-18T09:11:27+00:00

I am trying to use Plack::Middleware::DBIC::QueryLog inside of a dancer application. The documentation tells

  • 0

I am trying to use Plack::Middleware::DBIC::QueryLog inside of a dancer application.
The documentation tells me to get the querylog like this:

use Plack::Middleware::DBIC::QueryLog;
sub get_querylog_from_env {
  my ($self, $env) = @_;
  Plack::Middleware::DBIC::QueryLog->get_querylog_from_env($env);
}

In my dancer app before accessing my database schema I have to set $schema->storage->debugobj
to the QueryLogger.
My question is: How can I access the environment $env provided by Plack which contains the QueryLog object I’m
supposed to use?

I am starting my dancer application with

plackup bin/app.pl

where app.pl contains the default

use Dancer;
use app;
dance;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:11:28+00:00Added an answer on June 18, 2026 at 9:11 am

    Have you tried

    request->env();
    

    from within your app.pm itself? See Dancer::Request. It’s not a Plack::Request object, but judging from the source, it does contain PSGI ENV vars.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use Hibernate to do save/load objects that look like this
I am trying use gem tire to search in my application. I have tables
I am need paint my image. I'm trying use JQuery in here this link:
I'm trying use Places API from Google frmo a node.js server This is the
I'm trying to use python to create a random binary file. This is what
I am trying to use a QTextEdit widget inside of a form containing several
While trying to use cookies, I have trying to follow the vendor's documentation. In
I'm trying to use Visual Studio 2012 to create a Windows Forms application that
Im trying to use this but when I run it with valgrind I have
I am trying to use this feature (Google Analytics) in my app and can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.