# log2str

The function log2str can be used to log into charstring instead of the log file.

Related keyword:

- log
- charstring

### log2str ( ... ) return charstring"

This function can be parameterized in the same way as the log function.
It returns a charstring value which contains the log string for all the provided parameters, but it does not contain the timestamp, severity and call stack information, thus the output does not depend on the runtime configuration file.
The parameters are interpreted the same way as they are in the log function: their string values are identical to what the log statement writes to the log file.
The extra information (timestamp, severity, call stack) not included in the output can be obtained by writing external functions which use the runtimeâs Logger class to obtain the required data.

BNF definition of log