# LogRecorder

object LogRecorder
Content copied to clipboard

日志记录器

## Functions

generateId
Link copied to clipboard
@JvmStatic()
@Synchronized()
fun generateId(): String
Content copied to clipboard
产生一个唯一的基于时间戳Id
recordException
Link copied to clipboard
@JvmStatic()
fun recordException(id: String, requestMillis: Long, code: Int?, response: String?, errorMessage: String?)
Content copied to clipboard
发送请求异常到记录器
recordRequest
Link copied to clipboard
@JvmStatic()
fun recordRequest(id: String, url: String, method: String, headers: Map<String, List<String>>, body: String?)
Content copied to clipboard
发送请求信息到记录器中
recordResponse
Link copied to clipboard
@JvmStatic()
fun recordResponse(id: String, requestMillis: Long, code: Int, headers: Map<String, List<String>>, body: String?)
Content copied to clipboard
发送响应信息到记录器中

## Properties

enabled
Link copied to clipboard
@JvmStatic()
var enabled: Boolean = false
Content copied to clipboard
是否启用日志记录器