Internal function adding a record to the log.
Arguments
- event
data.frame of one record holding the fields of whatever that
is to be logged.
- name
String defining the name of the log, currently one of "appLog" or
"reportLog".
Value
Provides a new record in the log. If the log does not exist a new
one is created before appending the new record when the log target is
configured to be files. When logging to a database this have to be set up in
advance.