- 所有已实现的接口:
- Function<String,String>
public class LoggingFunction
extends Object
implements Function<String,String>
A function that demonstrates how to redirect logging to a topic.
In this particular example, for every input string, the function
does some logging. If --logTopic topic is specified, these log statements
end up in that specified pulsar topic.