2 # Functions for parsing this module's logs
6 # parse_webmin_log(user, script, action, type, object, ¶ms)
7 # Converts logged information from this module into human-readable form
10 local ($user, $script, $action, $type, $object, $p, $long) = @_;
11 if ($type eq "conn") {
12 return &text('log_'.$action.'_conn', "<tt>$object</tt>");
14 elsif ($type eq "secret") {
16 return &text('log_'.$action.'_secret', "<tt>$p->{'name'}</tt>");
19 return &text('log_'.$action.'_secret_nn');
22 elsif ($action eq "up") {
23 return &text('log_up', "<tt>$object</tt>");
25 elsif ($action eq "policy") {
26 return &text('log_policy', $text{'policy_desc_'.$object} ||
27 &text('policy_desc', $object));
30 return $text{'log_'.$action};