AiutaLogger

interface AiutaLogger

AiutaLogger is an interface that defines the contract for logging functionality across the application. It provides methods for logging messages at different priority levels and includes convenience extension functions for each log level.

The logger supports:

  • Different priority levels (VERBOSE, DEBUG, INFO, WARN, ERROR)

  • Optional tags to identify the source of the log

  • Optional throwable objects for error logging

  • Custom messages

See also

for available logging priority levels

Inheritors

Types

Link copied to clipboard

The priority level for a log message.

Functions

Link copied to clipboard
fun AiutaLogger.d(message: String, throwable: Throwable? = null, tag: String? = null)

Logs a message at DEBUG level.

Link copied to clipboard
fun AiutaLogger.e(message: String, throwable: Throwable? = null, tag: String? = null)

Logs a message at ERROR level.

Link copied to clipboard
fun AiutaLogger.i(message: String, throwable: Throwable? = null, tag: String? = null)

Logs a message at INFO level.

Link copied to clipboard
abstract fun log(priority: AiutaLogger.Level, tag: String? = null, throwable: Throwable? = null, message: String)

Write message and/or throwable to a logging destination.

Link copied to clipboard
fun AiutaLogger.v(message: String, throwable: Throwable? = null, tag: String? = null)

Logs a message at VERBOSE level.

Link copied to clipboard
fun AiutaLogger.w(message: String, throwable: Throwable? = null, tag: String? = null)

Logs a message at WARN level.