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_name;
 
  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(@_);