10   return DBI->connect(@_) unless $::lx_office_conf{debug} && $::lx_office_conf{debug}->{dbix_log4perl};
 
  12   require Log::Log4perl;
 
  13   require DBIx::Log4perl;
 
  15   my $filename =  $::lxdebug->file;
 
  16   my $config   =  $::lx_office_conf{debug}->{dbix_log4perl_config};
 
  17   $config      =~ s/LXDEBUGFILE/${filename}/g;
 
  19   Log::Log4perl->init(\$config);
 
  20   return DBIx::Log4perl->connect(@_);
 
  26     pg_enable_utf8 => $::locale->is_utf8,