syslog priority , mask , format , args
priority
mask
format
args
If priority and mask permit, logs message formed as if by sprintf( format , args ), with the addition that %m is replaced with the current error message from $! .
sprintf(
%m
$!
Copyright © 2001 O'Reilly & Associates. All rights reserved.