#include <evlog.h> int log_write_entry( const logd_t logdes, struct log_entry *entry, const void *buf, const size_t len );
A successful call to log_write_entry()
returns a value of zero
and an unsuccessful call returns the errno
.
logdes
argument is not a valid log descriptor.
entry
argument is not a valid pointer to a log entry.
facility
field in entry
is not a valid log facility.
severity
field in entry
exceeds LOG_SEVERITY_MAX
.
len
argument exceeds LOG_MAXIMUM_BUFFER_SIZE
.
len
argument was non-zero and buf
is NULL.
The log_write_entry()
function writes an event record
specified by the entry
, buf
, and len
arguments.
Most of the fields of the event record pointed to by entry
are left intact. The following fields are filled in as follows:
len
argument.
This allows existing log entries from one log file to be written to another log file without destroying the logged information.
The _POSIX_LOGGING
feature flag is defined to indicate
this service is available.
This implementation can not return the EPERM
error.
This function is not defined in the POSIX specification. It is an extension provided by this implementation.
Copyright © 1988-2004 OAR Corporation