WarningLogger

fun interface WarningLogger

Interface to be implemented by third-party apps if they want to observe warnings raised, for example, during the parsing of a publication.

Inheritors

Functions

Link copied to clipboard
abstract fun log(warning: Warning)

Notifies that a warning occurred.

Link copied to clipboard
fun WarningLogger.log(modelClass: Class<*>, reason: String, json: JSONObject? = null, severity: Warning.SeverityLevel = Warning.SeverityLevel.MAJOR)

Raises a JsonWarning.