Class LoggingFunction
- java.lang.Object
-
- org.apache.pulsar.functions.api.examples.LoggingFunction
-
- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<java.lang.String,java.lang.String>
public class LoggingFunction extends java.lang.Object implements org.apache.pulsar.functions.api.Function<java.lang.String,java.lang.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.
-
-
Constructor Summary
Constructors Constructor Description LoggingFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringprocess(java.lang.String input, org.apache.pulsar.functions.api.Context context)
-