LogUtils

open class LogUtils

Deprecated

日志工具类

 ┌──────────────────────────
   Thread: name ➔ Method stack info
 ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
   Log message
 └──────────────────────────

Author

Jenly

Follow me

Deprecated

此类已标记为废弃,后续可能会删除;后续内部的日志都将使用 LogX 进行来管理。

Properties

Link copied to clipboard
val ASSERT: Int = 7
Priority constant for the println method.use Log.wtf.
Link copied to clipboard
val DEBUG: Int = 3
Priority constant for the println method; use Log.d.
Link copied to clipboard
val ERROR: Int = 6
Priority constant for the println method; use Log.e.
Link copied to clipboard
val INFO: Int = 4
Priority constant for the println method; use Log.i.
Link copied to clipboard
open var isShowLog: Boolean
是否显示日志
Link copied to clipboard
val PRINTLN: Int = 1
Priority constant for the println method;use System.out.
Link copied to clipboard
open var priority: Int
日志优先级别
Link copied to clipboard
val STACK_TRACE_FORMAT: String = "%s.%s(%s:%d)"
Link copied to clipboard
val TAG: String = "CameraScan"
Link copied to clipboard
val VERBOSE: Int = 2
Priority constant for the println method; use Log.v.
Link copied to clipboard
val WARN: Int = 5
Priority constant for the println method; use Log.w.

Functions

Link copied to clipboard
open fun d(msg: String)
open fun d(t: Throwable)
open fun d(msg: String, t: Throwable)
打印日志;日志级别:DEBUG
Link copied to clipboard
open fun e(msg: String)
open fun e(t: Throwable)
open fun e(msg: String, t: Throwable)
打印日志;日志级别:ERROR
Link copied to clipboard
open fun i(msg: String)
open fun i(t: Throwable)
open fun i(msg: String, t: Throwable)
打印日志;日志级别:INFO
Link copied to clipboard
open fun println(obj: Any)

open fun println(msg: String)
System.out.
Link copied to clipboard
open fun v(msg: String)
open fun v(t: Throwable)
open fun v(msg: String, t: Throwable)
打印日志;日志级别:VERBOSE
Link copied to clipboard
open fun w(msg: String)
open fun w(t: Throwable)
open fun w(msg: String, t: Throwable)
打印日志;日志级别:WARN
Link copied to clipboard
open fun wtf(msg: String)
open fun wtf(t: Throwable)
open fun wtf(msg: String, t: Throwable)
打印日志;日志级别:ASSERT