Handle hostnames with upper-case letters
[webmin.git] / custom / log_parser.pl
1 # log_parser.pl
2 # Functions for parsing this module's logs
3
4 do 'custom-lib.pl';
5
6 # parse_webmin_log(user, script, action, type, object, &params)
7 # Converts logged information from this module into human-readable form
8 sub parse_webmin_log
9 {
10 local ($user, $script, $action, $type, $object, $p) = @_;
11 if ($type eq 'command') {
12         return &text("log_${action}",
13                      "<tt>".&html_escape($p->{'desc'})."</tt>");
14         }
15 elsif ($type eq 'edit') {
16         return &text("log_${action}_edit",
17                      "<tt>".&html_escape($p->{'desc'})."</tt>");
18         }
19 else {
20         return undef;
21         }
22 }
23