<< Previous | Next >>

log_open

int log_open( LogDestClass ldc, int clean );

Description

Open the specified logging destination class. If necessary, this enumerates all possible streams within the class, opening them all (necessary only for FS2 class, since each file needs to be opened). Class LOG_DEST_ALL opens all configured classes.

If clean is true, then the dest is set to empty log, if that makes sense for the class.

NOTE Please see the comments at the top of log.lib for a description of the message logging subsystem.

Parameters

ldc
Destination class: LOG_DEST_FS2, LOG_DEST_UDP, LOG_DEST_XMEM or LOG_DEST_ALL.

clean
Boolean, should the destination be erased before using?

Return Value

 0: success
-1: unknown LogDestClass value

Library

log.lib


Dynamic C Functions << Previous | Next >> rabbit.com