DarwinKLogger

class DarwinKLogger(val name: String, val underlyingLogger: os_log_t) : KLogger, DelegatingKLogger<os_log_t>

Constructors

Link copied to clipboard
constructor(name: String, underlyingLogger: os_log_t)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val name: String

Return the name of this Logger instance.

Link copied to clipboard
open override val underlyingLogger: os_log_t

The actual logger executing logging

Functions

Link copied to clipboard
open override fun at(level: Level, marker: Marker?, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message if level enabled

Link copied to clipboard
open fun atDebug(block: KLoggingEventBuilder.() -> Unit)
open fun atDebug(marker: Marker?, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isDebugEnabled is true

Link copied to clipboard
open fun atError(block: KLoggingEventBuilder.() -> Unit)
open fun atError(marker: Marker?, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isErrorEnabled is true

Link copied to clipboard
open fun atInfo(block: KLoggingEventBuilder.() -> Unit)
open fun atInfo(marker: Marker?, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isInfoEnabled is true

Link copied to clipboard
open fun atTrace(block: KLoggingEventBuilder.() -> Unit)
open fun atTrace(marker: Marker?, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isTraceEnabled is true

Link copied to clipboard
open fun atWarn(block: KLoggingEventBuilder.() -> Unit)
open fun atWarn(marker: Marker?, block: KLoggingEventBuilder.() -> Unit)

Lazy add a log message with throwable payload if isWarnEnabled is true

Link copied to clipboard
open fun <T : Throwable> catching(throwable: T)

Add a log message indicating an exception is caught along with the stack trace.

Link copied to clipboard
open fun debug(message: () -> Any?)
open fun debug(throwable: Throwable?, message: () -> Any?)
open fun debug(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isDebugEnabled is true

open fun debug(msg: String?)

Log a message at the DEBUG level.

open fun debug(marker: Marker?, msg: () -> Any?)

Lazy add a log message with a marker if isDebugEnabled is true

open fun debug(marker: Marker?, msg: String?)

Log a message with the specific Marker at the DEBUG level.

open fun debug(msg: String?, arg: Any?)

Log a message at the DEBUG level according to the specified msg and argument.

open fun debug(msg: String?, vararg arguments: Any?)
open fun debug(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the DEBUG level according to the specified msg and arguments.

open fun debug(msg: String?, t: Throwable?)

Log an exception (throwable) at the DEBUG level with an accompanying message.

open fun debug(marker: Marker?, msg: String?, arg: Any?)
open fun debug(marker: Marker?, msg: String?, vararg arguments: Any?)
open fun debug(marker: Marker?, msg: String?, t: Throwable?)
open fun debug(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .debug method except that the marker data is also taken into consideration.

open fun debug(marker: Marker?, t: Throwable?, msg: () -> Any?)
Link copied to clipboard
open fun entry(vararg arguments: Any?)

Add a log message with all the supplied parameters along with method name

Link copied to clipboard
open fun error(message: () -> Any?)
open fun error(throwable: Throwable?, message: () -> Any?)
open fun error(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isErrorEnabled is true

open fun error(msg: String?)

Log a message at the ERROR level.

open fun error(marker: Marker?, msg: () -> Any?)

Lazy add a log message with a marker if isErrorEnabled is true

open fun error(marker: Marker?, msg: String?)

Log a message with the specific Marker at the ERROR level.

open fun error(msg: String?, arg: Any?)

Log a message at the ERROR level according to the specified msg and argument.

open fun error(msg: String?, vararg arguments: Any?)
open fun error(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the ERROR level according to the specified msg and arguments.

open fun error(msg: String?, t: Throwable?)

Log an exception (throwable) at the ERROR level with an accompanying message.

open fun error(marker: Marker?, msg: String?, arg: Any?)
open fun error(marker: Marker?, msg: String?, vararg arguments: Any?)
open fun error(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .error method except that the marker data is also taken into consideration.

open fun error(marker: Marker?, msg: String?, t: Throwable?)
open fun error(marker: Marker?, t: Throwable?, msg: () -> Any?)
Link copied to clipboard
open fun exit()

Add log message indicating exit of a method

open fun <T> exit(result: T): T

Add a log message with the return value of a method

Link copied to clipboard
open fun info(message: () -> Any?)
open fun info(throwable: Throwable?, message: () -> Any?)
open fun info(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isInfoEnabled is true

open fun info(msg: String?)

Log a message at the INFO level.

open fun info(marker: Marker?, msg: () -> Any?)

Lazy add a log message with a marker if isInfoEnabled is true

open fun info(marker: Marker?, msg: String?)

Log a message with the specific Marker at the INFO level.

open fun info(msg: String?, arg: Any?)

Log a message at the INFO level according to the specified msg and argument.

open fun info(msg: String?, vararg arguments: Any?)
open fun info(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the INFO level according to the specified msg and arguments.

open fun info(msg: String?, t: Throwable?)

Log an exception (throwable) at the INFO level with an accompanying message.

open fun info(marker: Marker?, msg: String?, arg: Any?)
open fun info(marker: Marker?, msg: String?, vararg arguments: Any?)
open fun info(marker: Marker?, msg: String?, t: Throwable?)
open fun info(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .info method except that the marker data is also taken into consideration.

open fun info(marker: Marker?, t: Throwable?, msg: () -> Any?)
Link copied to clipboard
open fun isDebugEnabled(marker: Marker? = null): Boolean

Similar to .isDebugEnabled method except that the marker data is also taken into account.

Link copied to clipboard
open fun isErrorEnabled(marker: Marker? = null): Boolean

Similar to .isErrorEnabled method except that the marker data is also taken into consideration.

Link copied to clipboard
open fun isInfoEnabled(marker: Marker? = null): Boolean

Similar to .isInfoEnabled method except that the marker data is also taken into consideration.

Link copied to clipboard
open override fun isLoggingEnabledFor(level: Level, marker: Marker?): Boolean
Link copied to clipboard
open fun isLoggingOff(marker: Marker? = null): Boolean

Similar to .isLoggingOff method except that the marker data is also taken into consideration.

Link copied to clipboard
open fun isTraceEnabled(marker: Marker? = null): Boolean

Similar to .isTraceEnabled method except that the marker data is also taken into account.

Link copied to clipboard
open fun isWarnEnabled(marker: Marker? = null): Boolean

Similar to .isWarnEnabled method except that the marker data is also taken into consideration.

Link copied to clipboard
open fun <T : Throwable> throwing(throwable: T): T

Add a log message indicating an exception will be thrown along with the stack trace.

Link copied to clipboard
open fun trace(message: () -> Any?)
open fun trace(throwable: Throwable?, message: () -> Any?)
open fun trace(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isTraceEnabled is true

open fun trace(msg: String?)

Log a message at the TRACE level.

open fun trace(marker: Marker?, msg: () -> Any?)
open fun trace(marker: Marker?, t: Throwable?, msg: () -> Any?)

open fun trace(marker: Marker?, msg: String?)

Log a message with the specific Marker at the TRACE level.

open fun trace(msg: String?, arg: Any?)

Log a message at the TRACE level according to the specified msg and argument.

open fun trace(msg: String?, vararg arguments: Any?)
open fun trace(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the TRACE level according to the specified msg and arguments.

open fun trace(msg: String?, t: Throwable?)

Log an exception (throwable) at the TRACE level with an accompanying message.

open fun trace(marker: Marker?, msg: String?, arg: Any?)
open fun trace(marker: Marker?, msg: String?, vararg arguments: Any?)
open fun trace(marker: Marker?, msg: String?, t: Throwable?)
open fun trace(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .trace method except that the marker data is also taken into consideration.

Link copied to clipboard
open fun warn(message: () -> Any?)
open fun warn(throwable: Throwable?, message: () -> Any?)
open fun warn(throwable: Throwable?, marker: Marker?, message: () -> Any?)

Lazy add a log message if isWarnEnabled is true

open fun warn(msg: String?)

Log a message at the WARN level.

open fun warn(marker: Marker?, msg: () -> Any?)

Lazy add a log message with a marker if isWarnEnabled is true

open fun warn(marker: Marker?, msg: String?)

Log a message with the specific Marker at the WARN level.

open fun warn(msg: String?, arg: Any?)

Log a message at the WARN level according to the specified msg and argument.

open fun warn(msg: String?, vararg arguments: Any?)
open fun warn(msg: String?, arg1: Any?, arg2: Any?)

Log a message at the WARN level according to the specified msg and arguments.

open fun warn(msg: String?, t: Throwable?)

Log an exception (throwable) at the WARN level with an accompanying message.

open fun warn(marker: Marker?, msg: String?, arg: Any?)
open fun warn(marker: Marker?, msg: String?, vararg arguments: Any?)
open fun warn(marker: Marker?, msg: String?, t: Throwable?)
open fun warn(marker: Marker?, msg: String?, arg1: Any?, arg2: Any?)

This method is similar to .warn method except that the marker data is also taken into consideration.

open fun warn(marker: Marker?, t: Throwable?, msg: () -> Any?)