2 # Functions for parsing this module's logs
6 # parse_webmin_log(user, script, action, type, object, ¶ms, [long])
7 # Converts logged information from this module into human-readable form
10 local ($user, $script, $action, $type, $object, $p, $long) = @_;
11 if ($action eq "swap") {
12 return &text('log_swap', "<tt>".&html_escape($object)."</tt>");
15 local $text = $long ? "log_${action}_l" : "log_${action}";
16 return &text($text, "<tt>".&html_escape($p->{'dev'})."</tt>",
17 &fstype_name($p->{'type'}),
18 "<tt>".&html_escape($p->{'dir'})."</tt>");