#include <cogent.h>
ST_STATUS LG_Cache(IP_Task* myself, IP_Task* textlog, char* retbuf, int buflen, int cached, int nlabels, char** labels );
ST_OK on success. Otherwise ST_ERROR, and the retbuf will contain a more detailed error message (see cache in the Cascade TextLogger documentation). If the return value is ST_OK, the retbuf may not contain useful information.
This function lets you determine how frequently data is written. When caching is on (cached is set to 0, the default), data is written in blocks, according to your default C library file buffer implementation. When caching is off (any non-zero value), each line of output is immediately flushed from the buffer to the file.
![]() | If the Cascade TextLogger is started with the -F option, this function is ignored because there is no possibility of caching; all data is immediately flushed to the file. |
This function corresponds to the Cascade TextLogger cache command.
Copyright © 1995-2012 by Cogent Real-Time Systems, Inc. All rights reserved.