(output mode string [string ...])
Specifies where the output string is to be written. One of the following options:
Write the string to the corresponding log, or all the logs in the group.
Write the string to the corresponding file.
Write the string to standard output.
Write the string to standard error.
A string to be inserted into the output.
On success, t, otherwise one of the following error messages:
(error "textlog: No file filename for output command") (error "textlog: Too many arguments to output: # < #") (error "textlog: Invalid command: output")
or, if none of the above errors apply, nil.
The output command inserts an output string into a file, one or more logs, standard output, or standard error, as a line. 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 command corresponds to the Cogent C API function LG_Output.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.