| Server IP : 45.162.171.154 / Your IP : 216.73.216.5 Web Server : Apache System : Linux vxct2015.avnam.net 5.4.106-1-pve #1 SMP PVE 5.4.106-1 (Fri, 19 Mar 2021 11:08:47 +0100) x86_64 User : lpg.com.ar ( 1041) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/webmin/ |
Upload File : |
# Contains a function to supply the syslog module with extra logs
do 'webmin-lib.pl';
# syslog_getlogs()
# Returns the Webmin error log
sub syslog_getlogs
{
my %miniserv;
&get_miniserv_config(\%miniserv);
if ($miniserv{'errorlog'} eq '-') {
# Logging to stdout
return ( );
}
elsif ($miniserv{'errorlog'}) {
# Specific file
return ( { 'file' => $miniserv{'errorlog'},
'desc' => $text{'syslog_errorlog'},
'active' => 1, } );
}
elsif ($miniserv{'logfile'} =~ /^(.*)\/[^\/]+$/) {
# Relative to main log
return ( { 'file' => "$1/miniserv.error",
'desc' => $text{'syslog_errorlog'},
'active' => 1, } );
}
}