Log

open class Log

A simple wrapper for android.util.Log that supports log message formatting and turning on or off logging based on tag.

Types

Link copied to clipboard
annotation class Level
The list of possible of logging levels.

Properties

Link copied to clipboard
val DEBUG: Int
The level for debug log messages.
Link copied to clipboard
val ERROR: Int
The level for error log messages.
Link copied to clipboard
val INFO: Int
The level for information log messages.
Link copied to clipboard
The level for verbose log messages.
Link copied to clipboard
val WARN: Int
The level for warning log messages.

Functions

Link copied to clipboard
open fun d(tag: String, message: String, arguments: Array<Any>): Int
open fun d(tag: String, message: String, error: Throwable, arguments: Array<Any>): Int
Logs a debug message.
Link copied to clipboard
open fun e(tag: String, message: String, arguments: Array<Any>): Int
open fun e(tag: String, message: String, error: Throwable, arguments: Array<Any>): Int
Logs an error message.
Link copied to clipboard
open fun i(tag: String, message: String, arguments: Array<Any>): Int
open fun i(tag: String, message: String, error: Throwable, arguments: Array<Any>): Int
Logs an information message.
Link copied to clipboard
open fun isLoggable(tag: String, level: Int): Boolean
Checks to see whether or not a log for the specified tag is loggable at the specified level.
Link copied to clipboard
open fun v(tag: String, message: String, arguments: Array<Any>): Int
open fun v(tag: String, message: String, error: Throwable, arguments: Array<Any>): Int
Logs a verbose message.
Link copied to clipboard
open fun w(tag: String, message: String, arguments: Array<Any>): Int
open fun w(tag: String, message: String, error: Throwable, arguments: Array<Any>): Int
Logs a warning message.