MessageTransform

MessageTransform

A message transform takes in text, applies a transformation to it and outputs said text

Transforms may be chained

Members

Functions

chain
void chain(MessageTransform transform)

Chain a transform

execute
string execute(string text, string[] context)

Perform the transformation

transform
string transform(string text, string[] context)

The actual textual transformation.

Examples

Tests the DefaultLogger

Logger logger = new DefaultLogger();

logger.log("This is a log message");
logger.log(1);
logger.log(1.1);
logger.log(true);
logger.log([1,2,3]);
logger.log('f');
logger.log(logger);

Meta