格式化数据

使用以下扩展来格式化 AuditTrail 数据:
sub atCust_CreateLogEntry {
    my($session, $entity, $timestamp, $action,
       $state, $login, $fullname, $groups) = @_;

    # Note: This example doesn't record which fields actually changed.
    return "AuditTrail: " . $timestamp . $action . $state .
             $login . $fullname . $groups . "\n**********\n";
} 
自变量: 返回值:表示将写入日志的审计跟踪条目的字符串,包括条目之间的定界符和空格。

Feedback