package com.ypsx.yppos.utils

import com.elvishew.xlog.LogLevel
import com.elvishew.xlog.flattener.Flattener2

class XLogFlattener: Flattener2 {
    override fun flatten(
        timeMillis: Long,
        logLevel: Int,
        tag: String?,
        message: String?
    ): CharSequence {
        return (DateUtil.getLogTime(timeMillis)
                + '|' + LogLevel.getShortLevelName(logLevel)
                + '|' + tag
                + '|' + message)
    }
}