Class ThriftStructuredLogJsonFormat


  • public final class ThriftStructuredLogJsonFormat
    extends Object
    A utility to provide JSON based service log serialization. The JSON serialization provided by this class deal with some known classes in a special way. For the representation classes of Apache Thrift RPC objects such as TBase and TApplicationException, it uses TTextProtocol to serialize objects in a human-readable format.
    • Method Detail

      • newObjectMapper

        public static ObjectMapper newObjectMapper​(SimpleModule... userModules)
        Returns newly created ObjectMapper which is configured properly to serialize some knows classes in a good way.