TableFormat

class TableFormat(val maxSingleLogLength: Int, val maxPrintTimes: Int, val header: TableFormat.LogHeader = LogHeader.default, val ellipsis: String? = null) : LogFormat(source)

Table format of LogInfo.

Since

1.3.4

Parameters

ellipsis

If the content that needs to be printed exceeds the number of times specified by maxPrintTimes, the user can decide whether to end with ellipsis

See also

Constructors

Link copied to clipboard
constructor(maxSingleLogLength: Int, maxPrintTimes: Int, header: TableFormat.LogHeader = LogHeader.default, ellipsis: String? = null)

Types

Link copied to clipboard
data class LogHeader(val thread: Boolean, val tag: Boolean, val level: Boolean, val time: Boolean)

Log header configuration.

Properties

Link copied to clipboard
private val ellipsis: String? = null
Link copied to clipboard
Link copied to clipboard
private val maxPrintTimes: Int
Link copied to clipboard
private val maxSingleLogLength: Int

Functions

Link copied to clipboard
open override fun format(logInfo: LogInfo): String
Link copied to clipboard
private inline fun logFormat(logInfo: LogInfo, len: Int = logInfo.printBytesLength, customScope: (StringBuilder, String) -> Unit): String

Print log.

Link copied to clipboard
private fun textFormat(logInfo: LogInfo): String

Print logInfo.