Class ThriftStructuredLogJsonFormat
- java.lang.Object
-
- com.linecorp.armeria.server.thrift.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 asTBaseandTApplicationException, it usesTTextProtocolto serialize objects in a human-readable format.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectMappernewObjectMapper(SimpleModule... userModules)Returns newly createdObjectMapperwhich is configured properly to serialize some knows classes in a good way.
-
-
-
Method Detail
-
newObjectMapper
public static ObjectMapper newObjectMapper(SimpleModule... userModules)
Returns newly createdObjectMapperwhich is configured properly to serialize some knows classes in a good way.
-
-