#include <cogent.h>
ST_STATUS LG_Output(
IP_Task* myself, IP_Task* textlog, char* retbuf, int buflen, char* label, char* output )
;
A pointer to this task's IP_Task structure normallly generated by a call to IP_NserveInit.
A pointer to the Cascade TextLogger's IP_Task structure, normally generated by a call to IP_TaskFindName.
A pointer to a character buffer to hold the return from the call.
The length of retbuf, in bytes.
The log or group to which the output will be written. You can also specify stdout to write to standard output, or stderr to write to standard error.
The text to write.
ST_OK on success. Otherwise ST_ERROR, and the retbuf will contain a more detailed error message (see output in the Cascade TextLogger documentation). If the return value is ST_OK, the retbuf may not contain useful information.
This function inserts an output string as a line into a log or group, standard output, or standard error. If the label is for a single log, the string will appear in that log only. If the label is for a group, then the string will appear in each of the logs pertaining to that group.
This function corresponds to the Cascade TextLogger output command.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.