-
public class LogUtilPrebid logger. Allows to control log level.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceLogUtil.PrebidLoggerInternal interface.
-
Field Summary
Fields Modifier and Type Field Description public final static intNONEpublic final static intVERBOSEpublic final static intDEBUGpublic final static intINFOpublic final static intWARNpublic final static intERRORpublic final static intASSERTprivate static intlogLevelprivate static LogUtil.PrebidLoggerlogger
-
Method Summary
Modifier and Type Method Description static intgetLogLevel()static voidsetLogLevel(int level)static voidsetLogger(@NonNull() LogUtil.PrebidLogger 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. static voidprint(int messagePriority, String message)Prints information with set priority. -
-
Method Detail
-
getLogLevel
static int getLogLevel()
-
setLogLevel
static void setLogLevel(int level)
-
setLogger
static void setLogger(@NonNull() LogUtil.PrebidLogger 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.
-
error
static void error(String tag, String message, Throwable throwable)
Prints a message with ERROR priority and exception.
-
-
-
-