RTEMS Logo

RTEMS 4.6.4 On-Line Library


Event Logging Manager Creating and Writing a non-System Log

PREV UP NEXT Bookshelf New Chapters

1.3.1: Creating and Writing a non-System Log

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 );


PREV UP NEXT Bookshelf New Chapters

Copyright © 1988-2004 OAR Corporation