The following code fragment create a non-System log file at /temp/.
A real filename previously read entry and buffer log_buf
of size
readsize
are written into the log. See the discussion on opening
and reading a log for how the entry is created.
#include <evlog.h> : logd_t *outlog = NULL; char *path = "/temp/"; log_create( outlog, path ); : log_write_entry( outlog, &entry, log_buf, readsize );
Copyright © 1988-2004 OAR Corporation