-
public class LogUtil
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceLogUtil.AppstockLogger
-
Field Summary
Fields Modifier and Type Field Description public final static intVERBOSEpublic final static intDEBUGpublic final static intINFOpublic final static intWARNpublic final static intERRORpublic final static intASSERTpublic final static intNONEprivate static intlogLevelprivate static LogUtil.AppstockLoggerlogger
-
Method Summary
Modifier and Type Method Description static intgetLogLevel()static voidsetLogLevel(int level)static voidsetLogger(@NonNull() LogUtil.AppstockLogger newLogger)static voidverbose(String message)Prints a message with VERBOSE priority and default BASE_TAG static voiddebug(String message)Prints a message with DEBUG priority and default BASE_TAG static voidinfo(String message)Prints a message with INFO priority and default BASE_TAG static voidwarning(String message)Prints a message with WARNING priority and default BASE_TAG static voiderror(String message)Prints a message with ERROR priority and default BASE_TAG static voidverbose(@Size(max = 23) String tag, String msg)Prints a message with VERBOSE priority. static voiddebug(@Size(max = 23) String tag, String msg)Prints a message with DEBUG priority. static voidinfo(@Size(max = 23) String tag, String msg)Prints a message with INFO priority. static voidwarning(@Size(max = 23) String tag, String msg)Prints a message with WARN priority. static voiderror(@Size(max = 23) String tag, String msg)Prints a message with ERROR priority. static voidwtf(@Size(max = 23) String tag, String msg)Prints a message with ASSERT priority. static voiderror(String tag, String message, Throwable throwable)Prints a message with ERROR priority and exception. -
-
Method Detail
-
getLogLevel
static int getLogLevel()
-
setLogLevel
static void setLogLevel(int level)
-
setLogger
static void setLogger(@NonNull() LogUtil.AppstockLogger newLogger)
-
verbose
static void verbose(String message)
Prints a message with VERBOSE priority and default BASE_TAG
-
warning
static void warning(String message)
Prints a message with WARNING priority and default BASE_TAG
-
verbose
static void verbose(@Size(max = 23) String tag, String msg)
Prints a message with VERBOSE priority.
-
debug
static void debug(@Size(max = 23) String tag, String msg)
Prints a message with DEBUG priority.
-
warning
static void warning(@Size(max = 23) String tag, String msg)
Prints a message with WARN priority.
-
error
static void error(@Size(max = 23) String tag, String msg)
Prints a message with ERROR priority.
-
-
-
-