|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /usr/libexec/webmin/mysql/ |
Upload File : |
# Contains a function to supply the syslog module with extra logs
do 'mysql-lib.pl';
# syslog_getlogs()
# Returns a list of structures containing extra log files known to this module
sub syslog_getlogs
{
local $conf = &get_mysql_config();
local ($sect) = grep { $_->{'name'} eq 'mysqld_safe' ||
$_->{'name'} eq 'safe_mysqld' } @$conf;
local @rv;
if ($sect) {
local $log = &find_value("err-log", $sect->{'members'});
if ($log) {
push(@rv, { 'file' => $log,
'desc' => $text{'syslog_desc'},
'active' => 1,
} );
}
local $log = &find_value("log", $sect->{'members'});
if ($log) {
push(@rv, { 'file' => $log,
'desc' => $text{'syslog_logdesc'},
'active' => 1,
} );
}
}
return @rv;
}