SupabaseLogger

abstract class SupabaseLogger

An interface for logging in Supabase plugins.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val level: LogLevel?

The minimum log level to handle for this logger. If null, the SupabaseClient.DEFAULT_LOG_LEVEL will be used.

Functions

Link copied to clipboard
inline fun SupabaseLogger.d(throwable: Throwable? = null, message: () -> String)

Log a debug message with an optional throwable

Link copied to clipboard
inline fun SupabaseLogger.e(throwable: Throwable? = null, message: () -> String)

Log an error message with an optional throwable

Link copied to clipboard
inline fun SupabaseLogger.i(throwable: Throwable? = null, message: () -> String)

Log an info message with an optional throwable

Link copied to clipboard
inline fun log(level: LogLevel, throwable: Throwable? = null, message: () -> String)
abstract fun log(level: LogLevel, throwable: Throwable? = null, message: String)

Log a message with the given level and message. An optional throwable can be provided.

Link copied to clipboard
abstract fun setLevel(level: LogLevel)

Set the log level for this logger

Link copied to clipboard
inline fun SupabaseLogger.w(throwable: Throwable? = null, message: () -> String)

Log a warning message with an optional throwable