Package-level declarations

Types

Link copied to clipboard
class AndroidLogger(val logFormat: LogFormat) : LogScope, Logger

Android logger.

Link copied to clipboard
class AndroidStore(val fileRoot: File, val fileNamePrefix: String, val fileNameDateSuffixSdf: SimpleDateFormat, val fileMaxSize: Long, val logFormat: LogFormat) : LogScope, LogStore

Android log store.

Functions

Link copied to clipboard

Android Logger with custom LogFormat.

fun Logger.Companion.android(maxSingleLogLength: Int = DEFAULT_MAX_SINGLE_LOG_LENGTH, maxPrintTimes: Int = DEFAULT_MAX_PRINT_TIMES, header: TableFormat.LogHeader = TableFormat.LogHeader(thread = true, tag = true, level = true, time = true)): AndroidLogger

Android Logger.

fun LogStore.Companion.android(fileRoot: File = File(FileMgr.appInternalFilesDir(), "log"), fileNamePrefix: String = AppUtils.getAppName(), fileNameDateSuffixSdf: SimpleDateFormat = fileNameTimeSdf, @IntRange(from = 0, to = 9223372036854775807) fileMaxSize: Long = 1000 * 1024L, logFormat: LogFormat = TableFormat.LogHeader.default.let { TableFormat(DEFAULT_MAX_SINGLE_LOG_LENGTH, DEFAULT_MAX_PRINT_TIMES, it) }): AndroidStore

Android LogStore.