All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.earth.worldwind.util.Logger.kt Maven / Gradle / Ivy

Go to download

The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.

The newest version!
package earth.worldwind.util

expect object Logger {
    val ERROR: Int
    val WARN: Int
    val INFO: Int
    val DEBUG: Int

    fun isLoggable(priority: Int): Boolean

    /**
     * Logs a specified message at a specified level.
     *
     * @param priority The logging level of the message. If the current logging level allows this message to be
     * logged it is written to the console.
     * @param message The message to log. Nothing is logged if the message is null or undefined.
     * @param tr Optional exception
     */
    fun log(priority: Int, message: String, tr: Throwable? = null)

    fun logMessage(level: Int, className: String, methodName: String, message: String, tr: Throwable? = null): String

    fun makeMessage(className: String, methodName: String, message: String): String
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy