Safe日志记录器(Logger)

abstract class SafeLogger : Logger

An abstract base class for Logger implementations that safely evaluates the log message lambda. If the lambda throws an exception, it is caught and logged without crashing the application.

Inheritors

构造函数(Constructors)

Link copied to clipboard
constructor()

属性(Properties)

Link copied to clipboard
abstract val name: String

这个日志记录器实例的名称。

函数

Link copied to clipboard
open fun debug(cause: Throwable? = null, msg: () -> String)

在……位置记录一条消息。 Level.DEBUG `level`。

Link copied to clipboard
open fun error(cause: Throwable? = null, msg: () -> String)

在……位置记录一条消息。 Level.ERROR `level`。

Link copied to clipboard
open fun info(cause: Throwable? = null, msg: () -> String)

在……位置记录一条消息。 Level.INFO `level`。

Link copied to clipboard
open override fun log(level: Level, cause: Throwable? = null, msg: () -> String)

在指定位置记录一条消息。 级别;层次.

Link copied to clipboard
open fun trace(cause: Throwable? = null, msg: () -> String)

在……位置记录一条消息。 Level.TRACE `level`。

Link copied to clipboard
open fun warn(cause: Throwable? = null, msg: () -> String)

在……位置记录一条消息。 Level.WARN `level`。