Formatting data

Use the following extension to format AuditTrail data:
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";
} 
Arguments: Return value: A string that represents the full audit trail entry to be written to the log, including delimiters and space between entries.

Feedback