LogJson

class LogJson(mConfiguration: LogJson.Configuration)(source)

The LogJson plugin allows you to convert objects to json.

private val gsonConverter = GsonConverter.getInstance(true)

val logFactory: LogFactory = getLogFactory {
...
install(LogJson) {
converter = gsonConverter
}
}

Since

0.5.3

Constructors

Link copied to clipboard
private constructor(mConfiguration: LogJson.Configuration)

Types

Link copied to clipboard
Link copied to clipboard

Configuration of LogJson.

Properties

Link copied to clipboard
private val mConverter: Converter

Functions

Link copied to clipboard
private fun toJson(data: Any): String