Apache-Bwlog
view release on metacpan or search on metacpan
}
}
sub db_connect
{
my $r = shift;
my $Bwlog_mysql_database = $r->dir_config("Bwlog_mysql_database");
my $Bwlog_mysql_server = $r->dir_config("Bwlog_mysql_server");
my $Bwlog_mysql_user = $r->dir_config("Bwlog_mysql_user");
my $Bwlog_mysql_password = $r->dir_config("Bwlog_mysql_password");
return DBI->connect("DBI:mysql:$Bwlog_mysql_database:$Bwlog_mysql_server", $Bwlog_mysql_user, $Bwlog_mysql_password);
}
sub read_shm_hash
{
## Since the sharelite module doesn't support var types, we are going to store a structure to read/write our hash back and forth.
my $sem_data = $share_sem->fetch();
my @conv_array = split(/&/, $sem_data);
my $inc = 0;
my ($k, $v);
while($conv_array[$inc])
this value to low can add a lot of disk I/O, and or CPU time. For a high volume site
a large number is recommended here. Defaults to 100,000 bytes.
=item * PerlSetVar Bwlog_logtype <type>
Valid types are currently "file" and "mysql". The mysql portion requires the directives
described below.
=item * PerlSetVar Bwlog_mysql_user
=item * PerlSetVar Bwlog_mysql_password
=item * PerlSetVar Bwlog_mysql_server
=item * PerlSetVar Bwlog_mysql_database
=item * PerlSetVar Bwlog_mysql_tablename
=item * PerlSetVar Bwlog_logdir <directory>
=head1 ABSTRACT
httpd.conf Example.
PerlLogHandler Apache::Bwlog
PerlSetVar Bwlog_mysql_user bw_user
PerlSetVar Bwlog_mysql_password bw_password
PerlSetVar Bwlog_mysql_server 127.0.0.1
PerlSetVar Bwlog_mysql_database bw_logger
PerlSetVar Bwlog_mysql_tablename bw_log
PerlSetVar Bwlog active
PerlSetVar Bwlog_threshold 100000
PerlSetVar Bwlog_logtype mysql
( run in 0.827 second using v1.01-cache-2.11-cpan-49f99fa48dc )