logging - Guardian Digital WebTool module interface to system and application logs.
use logging; my $logging = new logging($page);
This Guardian Digital WebTool module provides an interface to listing, retrieving, and searching system and application logs.
This function returns hash reference(name,path) of system log(11), kernel messages(12), webtool audit(13) and user audit logs(14). See example for understanding number notations.
Example Usage:
my $logref = $logging->get_system_logs();
my $syslog = $logref->{11}->{'name'};
my $syspath = $logref->{11}->{'path'};
This function returns hash reference(name,path) of application log files like Mail server log(11), PHP error log(12), MySQL error log(13). see example for number notations.
Example Usage:
my $logref = $logging->get_app_logs();
my $maillog = $logref->{11}->{'name'};
my $mailpath = $logref->{11}->{'path'};
This returns hash reference(name,path) of all website log files. It basically reads through all virtual hosts hosted in web server file and depends on the port it selects which error log file it should choose(e.g port 443 :SSL port).
Example Usage:
my $logref = $logging->get_web_logs();
my $weblog = $logref->{11}->{'name'};
my $webpath = $logref->{11}->{'path'};
Ryan W. Maple <ryan@guardiandigital.com>