Package-level declarations

Types

Link copied to clipboard
interface CustomLogger

Interface for custom logger implementations. Provides both string-based and structured LogMessage-based logging.

Link copied to clipboard
Link copied to clipboard
class LogConfig(val pnInstanceId: String, val userId: String, val customLoggers: List<CustomLogger>? = null)

Configuration for logging system with validation.

Link copied to clipboard
class LogMessage(val message: LogMessageContent, val details: String? = null, val type: LogMessageType = message.inferType(), val location: String? = null, val pubNubId: String? = null, val logLevel: Level? = null, val timestamp: String = LocalTime.now().format(DateTimeFormatter.ofPattern("HH:mm:ss.SSS")))

Represents a structured log message with validation and sanitization.

Link copied to clipboard
sealed class LogMessageContent

Sealed class representing different types of log message content. This provides type safety when working with different message types.

Link copied to clipboard
Link copied to clipboard
data class NetworkRequestMessage(val origin: String, val path: String, val query: Map<String, String>? = null, val method: HttpMethod, val headers: Map<String, String>? = null, val formData: Map<String, String>? = null, val body: String? = null, val timeout: Long? = null, val identifier: String? = null)
Link copied to clipboard
data class NetworkResponseMessage(val url: String, val status: Int, val headers: Map<String, String>? = null, val body: String? = null)