in reply to Re^4: Import constants?
in thread Import constants?

Unfortunately it didn't do any difference.

I'm doing the following:
use Log::Log4perl; use DBIx::Log4perl qw(:masks); Log::Log4perl->init("myconfigfile.cfg"); $dbh = DBIx::Log4perl->connect($DSN, "user", "pass"); $dbh->dbix_l4p_setattr( 'dbix_l4p_logmask', DBIX_L4P_LOG_TXN | DBIC_L4P_LOG_CONNECT | DBIX_L4P_LOG_INPUT | DBIX_L4P_LOG_ERRCAPTURE | DBIX_L4P_LOG_ERRORS | DBIX_L4P_LOG_DBDSPECIFIC ); ...
Maybe my problem is related to my usage of the config file?

Replies are listed 'Best First'.
Re^6: Import constants?
by BrowserUk (Patriarch) on Aug 05, 2010 at 09:20 UTC
    it didn't do any difference

    The set of masks I posted is the default set as described in the first entry in the pod.

    If you want the setting to be different, you'll have to choose which constants you want, and change the code to suit.

      I see. Sorry for not paying attention:-) I added
      DBIX_L4P_LOG_OUTPUT
      The same problem came up as when I used almuts's method:
      Can't locate auto/DBIx/Log4perl/st/_dbix_l4p_p.al

        What happens if you comment out the config?